Skip to content

Commit fed3c72

Browse files
committed
ci(scorecard): update config for sarif upload error
1 parent 0985ac7 commit fed3c72

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/scorecard.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# This workflow uses actions that are not certified by GitHub. They are provided
2-
# by a third-party and are governed by separate terms of service, privacy
3-
# policy, and support documentation.
4-
5-
name: Scorecard supply-chain security
1+
name: Scorecard analysis workflow
62
on:
73
# For Branch-Protection check. Only the default branch is supported. See
84
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
@@ -32,7 +28,7 @@ jobs:
3228

3329
steps:
3430
- name: "Checkout code"
35-
uses: actions/checkout@v4
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3632
with:
3733
persist-credentials: false
3834

@@ -56,10 +52,11 @@ jobs:
5652
# of the value entered here.
5753
publish_results: true
5854

59-
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
60-
# format to the repository Actions tab.
55+
# Upload the results as artifacts (optional). Commenting out will disable
56+
# uploads of run results in SARIF format to the repository Actions tab.
57+
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
6158
- name: "Upload artifact"
62-
uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
59+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
6360
with:
6461
name: SARIF file
6562
path: results.sarif
@@ -68,6 +65,6 @@ jobs:
6865
# Upload the results to GitHub's code scanning dashboard (optional).
6966
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7067
- name: "Upload to code-scanning"
71-
uses: github/codeql-action/upload-sarif@v3
68+
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
7269
with:
7370
sarif_file: results.sarif

0 commit comments

Comments
 (0)