@@ -26,38 +26,45 @@ jobs:
26
26
27
27
steps :
28
28
- name : " Checkout code"
29
- uses : actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0
29
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30
30
with :
31
31
persist-credentials : false
32
32
33
33
- name : " Run analysis"
34
- uses : ossf/scorecard-action@3e15ea8318eee9b333819ec77a36aca8d39df13e # v1.1 .1
34
+ uses : ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4 .1
35
35
with :
36
36
results_file : results.sarif
37
37
results_format : sarif
38
- # (Optional) Read-only PAT token. Uncomment the `repo_token` line below if:
38
+ # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
39
39
# - you want to enable the Branch-Protection check on a *public* repository, or
40
- # - you are installing Scorecards on a *private* repository
41
- # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
42
- # repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
43
-
44
- # Publish the results for public repositories to enable scorecard badges. For more details, see
45
- # https://github.com/ossf/scorecard-action#publishing-results.
46
- # For private repositories, `publish_results` will automatically be set to `false`, regardless
47
- # of the value entered here.
40
+ # - you are installing Scorecard on a *private* repository
41
+ # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
42
+ # repo_token: ${{ secrets.SCORECARD_TOKEN }}
43
+
44
+ # Public repositories:
45
+ # - Publish results to OpenSSF REST API for easy access by consumers
46
+ # - Allows the repository to include the Scorecard badge.
47
+ # - See https://github.com/ossf/scorecard-action#publishing-results.
48
+ # For private repositories:
49
+ # - `publish_results` will always be set to `false`, regardless
50
+ # of the value entered here.
48
51
publish_results : true
49
52
53
+ # (Optional) Uncomment file_mode if you have a .gitattributes with files marked export-ignore
54
+ # file_mode: git
55
+
50
56
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
51
57
# format to the repository Actions tab.
52
58
- name : " Upload artifact"
53
- uses : actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
59
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
54
60
with :
55
61
name : SARIF file
56
62
path : results.sarif
57
63
retention-days : 5
58
64
59
- # Upload the results to GitHub's code scanning dashboard.
65
+ # Upload the results to GitHub's code scanning dashboard (optional).
66
+ # Commenting out will disable upload of results to your repo's Code Scanning dashboard
60
67
- name : " Upload to code-scanning"
61
- uses : github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # v1.0.26
68
+ uses : github/codeql-action/upload-sarif@v3
62
69
with :
63
70
sarif_file : results.sarif
0 commit comments