From 09fec70bd3956efc04b706de80984a3267804ddd Mon Sep 17 00:00:00 2001 From: Mathias Wulff Date: Mon, 30 Dec 2024 02:54:13 +1100 Subject: [PATCH] Update scorecard.yml (#2014) --- .github/workflows/scorecard.yml | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index bf84ac926..1102643d3 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -40,35 +40,16 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - - - name: "Run analysis" - uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 + + - name: OSSF Scorecard action + uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 with: + # OUTPUT: Path to file to store results results_file: results.sarif + # OUTPUT: format of the results [json, sarif] results_format: sarif - # (Optional) "write" PAT token. Uncomment the `repo_token` line below if: - # - you want to enable the Branch-Protection check on a *public* repository, or - # - you are installing Scorecard on a *private* repository - # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat. - # repo_token: ${{ secrets.SCORECARD_TOKEN }} - - # Public repositories: - # - Publish results to OpenSSF REST API for easy access by consumers - # - Allows the repository to include the Scorecard badge. - # - See https://github.com/ossf/scorecard-action#publishing-results. - # For private repositories: - # - `publish_results` will always be set to `false`, regardless - # of the value entered here. - publish_results: true - - # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF - # format to the repository Actions tab. - - name: "Upload artifact" - uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 - with: - name: SARIF file - path: results.sarif - retention-days: 5 + # INPUT: Publish results + publish_results: true # Upload the results to GitHub's code scanning dashboard. - name: "Upload to code-scanning"