diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index 6edd8c2..f92387e 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -78,7 +78,7 @@ workflows: '.github/workflows/scorecard.yaml': - 'actions/checkout@v7.0.1' - 'github/codeql-action@v4.39.3' - - 'ossf/scorecard-action@v2.6.0' + - 'ossf/scorecard-action@v2.5.0' '.github/workflows/update-python-dependencies.yaml': - 'actions/checkout@v7.0.1' - 'actions/upload-artifact@v7.0.2' @@ -160,9 +160,9 @@ dependencies: commit: 'sha1-ceedf095f4ec1a097402bc6bd80831f2e1a6fde6' owner_id: 330458550 repo_id: 506133999 - 'ossf/scorecard-action@v2.6.0': - ref: 'v2.6.0' - commit: 'sha1-23f22cd43608bae7a1f1fa2603d7314dee9538a5' + 'ossf/scorecard-action@v2.5.0': + ref: 'v2.5.0' + commit: 'sha1-fa7117db83c52d787ae5a89f350999701505d78e' owner_id: 67707773 repo_id: 421101922 'pyo3/maturin-action@v1.51.0': diff --git a/.github/workflows/scorecard.yaml b/.github/workflows/scorecard.yaml index 3710846..37b6c2b 100644 --- a/.github/workflows/scorecard.yaml +++ b/.github/workflows/scorecard.yaml @@ -22,12 +22,11 @@ jobs: with: persist-credentials: false - name: 🛡️ Run Scorecard analysis - uses: ossf/scorecard-action@v2.6.0 + uses: ossf/scorecard-action@v2.5.0 with: results_file: results.sarif results_format: sarif publish_results: true - fail_on_publish_error: true - name: 🛡️ Upload Scorecard results to code scanning if: ${{ !cancelled() && hashFiles('results.sarif') != '' }} uses: github/codeql-action/upload-sarif@v4.39.3 diff --git a/changelog.d/+scorecard-image.bugfix.md b/changelog.d/+scorecard-image.bugfix.md new file mode 100644 index 0000000..c663c81 --- /dev/null +++ b/changelog.d/+scorecard-image.bugfix.md @@ -0,0 +1 @@ +Use the OpenSSF Scorecard v2.5.0 action while the v2.6.0 image is unavailable from GitHub Container Registry. diff --git a/docs/security-scanning.md b/docs/security-scanning.md index bba64da..210cd5f 100644 --- a/docs/security-scanning.md +++ b/docs/security-scanning.md @@ -55,10 +55,10 @@ analyze steps. ## OpenSSF Scorecard: `scorecard.yaml` -Runs `ossf/scorecard-action` v2.6.0 (Scorecard v5.7.0), publishes the results to the Scorecard API (which feeds the -public badge), and uploads the SARIF file to code scanning with the CodeQL Action. It takes no inputs and no secrets. -The action is [free for public repositories](https://github.com/ossf/scorecard-action#scorecards-github-action); a -private repository needs GitHub Advanced Security. +Runs `ossf/scorecard-action` v2.5.0, publishes the results to the Scorecard API (which feeds the public badge), and +uploads the SARIF file to code scanning with the CodeQL Action. It takes no inputs and no secrets. The action is +[free for public repositories](https://github.com/ossf/scorecard-action#scorecards-github-action); a private repository +needs GitHub Advanced Security. The caller must grant every permission the job requests; each comment says which Scorecard check needs it: @@ -94,9 +94,8 @@ The `branch_protection_rule` trigger rescores the repository when its branch pro publish can guard the job with `if: github.repository == 'owner/name'`. The Scorecard API rejects results from workflows that break its -[workflow restrictions](https://github.com/ossf/scorecard-action#workflow-restrictions). A rejection fails the job. -Network errors, HTTP 408, 429, and server errors produce a warning after retries. If the results file exists, the job -uploads it to code scanning even when publication fails. +[workflow restrictions](https://github.com/ossf/scorecard-action#workflow-restrictions). The action logs a warning on +publication failure. If the results file exists, the job uploads it to code scanning. The job disables cache access. It runs only approved actions, has no `run` steps, env, defaults, containers, or services, and uses a GitHub-hosted Ubuntu runner. The caller workflow must keep the global rules: