From 7bd637008dd63037a2682a9f20b3d3ff4661c57a Mon Sep 17 00:00:00 2001 From: Stephen Walsh <868017+stphnwlsh@users.noreply.github.com> Date: Thu, 29 Oct 2026 22:12:40 +0000 Subject: [PATCH 1/2] fix: move the Scorecard SARIF fix out of the publishing job --- .github/workflows/scorecard.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index c30cb6d..6c416db 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -16,7 +16,6 @@ jobs: name: Scorecard Analysis runs-on: ubuntu-latest permissions: - security-events: write id-token: write steps: @@ -34,6 +33,35 @@ jobs: results_format: sarif publish_results: true + - name: Upload Results + id: upload-results + uses: actions/upload-artifact@v7 + with: + name: scorecard + path: results.sarif + retention-days: 1 + + upload: + name: Scorecard Upload + runs-on: ubuntu-latest + needs: analysis + permissions: + contents: read + security-events: write + + steps: + - name: Checkout + id: checkout + uses: actions/checkout@v7 + with: + persist-credentials: false + + - name: Download Results + id: download-results + uses: actions/download-artifact@v8 + with: + name: scorecard + - name: Fix Locations id: fix-locations run: | From 3a71407add1b31a336d41c882e390e3e65845861 Mon Sep 17 00:00:00 2001 From: Stephen Walsh <868017+stphnwlsh@users.noreply.github.com> Date: Thu, 29 Oct 2026 22:45:42 +0000 Subject: [PATCH 2/2] Pin the Scorecard workflow actions to commit SHAs --- .github/workflows/scorecard.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 6c416db..724572e 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout id: checkout - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false @@ -35,7 +35,7 @@ jobs: - name: Upload Results id: upload-results - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: scorecard path: results.sarif @@ -52,13 +52,13 @@ jobs: steps: - name: Checkout id: checkout - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Download Results id: download-results - uses: actions/download-artifact@v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: scorecard @@ -69,6 +69,6 @@ jobs: - name: Upload id: upload - uses: github/codeql-action/upload-sarif@v4 + uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1 with: sarif_file: scorecard.sarif