Skip to content

Commit a504ead

Browse files
authored
Merge pull request #1464 from lukaszstolarczuk/fix-scorecard
Fix scorecard
2 parents b944476 + 1807cb5 commit a504ead

File tree

1 file changed

+12
-25
lines changed

1 file changed

+12
-25
lines changed

.github/workflows/scorecard.yml

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
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-
1+
# Scorecard analysis, looking for vulnerabilities and bad practices in the repo.
52
name: Scorecard supply-chain security
63
on:
74
# For Branch-Protection check. Only the default branch is supported. See
85
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
96
branch_protection_rule:
10-
# To guarantee Maintained check is occasionally updated. See
11-
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
127
workflow_dispatch:
138
schedule:
9+
# Runs at 22:45 UTC on Thursday.
1410
- cron: '45 22 * * 4'
1511
push:
1612
branches: [ "main" ]
@@ -27,9 +23,6 @@ jobs:
2723
security-events: write
2824
# Needed to publish results and get a badge (see publish_results below).
2925
id-token: write
30-
# Uncomment the permissions below if installing in a private repository.
31-
# contents: read
32-
# actions: read
3326

3427
steps:
3528
- name: "Checkout code"
@@ -38,36 +31,30 @@ jobs:
3831
persist-credentials: false
3932

4033
- name: "Run analysis"
41-
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
34+
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
4235
with:
43-
results_file: results.sarif
36+
results_file: scorecard_results.sarif
4437
results_format: sarif
4538
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
4639
# - you want to enable the Branch-Protection check on a *public* repository, or
4740
# - you are installing Scorecard on a *private* repository
4841
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
4942
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
5043

51-
# Public repositories:
52-
# - Publish results to OpenSSF REST API for easy access by consumers
53-
# - Allows the repository to include the Scorecard badge.
54-
# - See https://github.com/ossf/scorecard-action#publishing-results.
55-
# For private repositories:
56-
# - `publish_results` will always be set to `false`, regardless
57-
# of the value entered here.
44+
# Publish results to OpenSSF REST API for easy access by consumers
45+
# Allows the repository to include the Scorecard badge.
46+
# See https://github.com/ossf/scorecard-action#publishing-results.
5847
publish_results: true
5948

60-
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
61-
# format to the repository Actions tab.
6249
- name: "Upload artifact"
63-
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
50+
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # 4.3.1
6451
with:
65-
name: SARIF file
66-
path: results.sarif
52+
name: Scorecard results
53+
path: scorecard_results.sarif
6754
retention-days: 5
6855

6956
# Upload the results to GitHub's code scanning dashboard.
7057
- name: "Upload to code-scanning"
71-
uses: github/codeql-action/upload-sarif@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
58+
uses: github/codeql-action/upload-sarif@05963f47d870e2cb19a537396c1f668a348c7d8f # v3.24.8
7259
with:
73-
sarif_file: results.sarif
60+
sarif_file: scorecard_results.sarif

0 commit comments

Comments
 (0)