@@ -22,51 +22,42 @@ jobs:
2222 name : Scorecard analysis
2323 runs-on : ubuntu-latest
2424 permissions :
25- # Needed to upload the results to code- scanning dashboard.
25+ # Needed for Code scanning upload
2626 security-events : write
27- # Needed to publish results and get a badge (see publish_results below).
27+ # Needed for GitHub OIDC token if publish_results is true
2828 id-token : write
29- # Uncomment the permissions below if installing in a private repository.
30- # contents: read
31- # actions: read
3229
3330 steps :
3431 - name : " Checkout code"
35- uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3 .1.0
32+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 .1.1
3633 with :
3734 persist-credentials : false
3835
3936 - name : " Run analysis"
40- uses : ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
37+ uses : ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
4138 with :
4239 results_file : results.sarif
4340 results_format : sarif
44- # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
45- # - you want to enable the Branch-Protection check on a *public* repository, or
46- # - you are installing Scorecard on a *private* repository
47- # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
48- # repo_token: ${{ secrets.SCORECARD_TOKEN }}
49-
50- # Public repositories:
51- # - Publish results to OpenSSF REST API for easy access by consumers
52- # - Allows the repository to include the Scorecard badge.
53- # - See https://github.com/ossf/scorecard-action#publishing-results.
54- # For private repositories:
55- # - `publish_results` will always be set to `false`, regardless
56- # of the value entered here.
41+ # Scorecard team runs a weekly scan of public GitHub repos,
42+ # see https://github.com/ossf/scorecard#public-data.
43+ # Setting `publish_results: true` helps us scale by leveraging your workflow to
44+ # extract the results instead of relying on our own infrastructure to run scans.
45+ # And it's free for you!
5746 publish_results : true
5847
59- # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
60- # format to the repository Actions tab.
48+ # Upload the results as artifacts (optional). Commenting out will disable
49+ # uploads of run results in SARIF format to the repository Actions tab.
50+ # https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
6151 - name : " Upload artifact"
62- uses : actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
52+ uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
6353 with :
6454 name : SARIF file
6555 path : results.sarif
6656 retention-days : 5
6757
68- # Upload the results to GitHub's code scanning dashboard.
58+ # Upload the results to GitHub's code scanning dashboard (optional).
59+ # Commenting out will disable upload of results to your repo's Code Scanning dashboard
6960 - name : " Upload to code-scanning"
70- uses : github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2 .4
61+ uses : github/codeql-action/upload-sarif@83a02f7883b12e0e4e1a146174f5e2292a01e601 # v2.16 .4
7162 with :
7263 sarif_file : results.sarif
0 commit comments