Skip to content

Commit 8103806

Browse files
authored
chore: try to fix the security scorecard action (#9585)
chore: fix the security scorecard action
1 parent fae5fb4 commit 8103806

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/scorecards.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ jobs:
1717
permissions:
1818
# Needed to upload the results to code-scanning dashboard.
1919
security-events: write
20+
id-token: write
2021
actions: read
2122
contents: read
2223

2324
steps:
2425
- name: "Checkout code"
25-
uses: actions/checkout@v4 # v3.0.0
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2627
with:
2728
persist-credentials: false
2829

@@ -31,8 +32,8 @@ jobs:
3132
with:
3233
results_file: results.sarif
3334
results_format: sarif
34-
# Read-only PAT token. To create it,
35-
# follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation.
35+
# Read-only PAT token. To create it, follow the steps in
36+
# https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
3637
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
3738
# Publish the results to enable scorecard badges. For more details, see
3839
# https://github.com/ossf/scorecard-action#publishing-results.
@@ -42,14 +43,14 @@ jobs:
4243

4344
# Upload the results as artifacts (optional).
4445
- name: "Upload artifact"
45-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v3.1.0
46+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
4647
with:
4748
name: SARIF file
4849
path: results.sarif
4950
retention-days: 5
5051

5152
# Upload the results to GitHub's code scanning dashboard.
5253
- name: "Upload to code-scanning"
53-
uses: github/codeql-action/upload-sarif@v3.27.5 # v1.0.26
54+
uses: github/codeql-action/upload-sarif@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
5455
with:
5556
sarif_file: results.sarif

0 commit comments

Comments
 (0)