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.
5
2
name : Scorecard supply-chain security
6
3
on :
7
4
# For Branch-Protection check. Only the default branch is supported. See
8
5
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
9
6
branch_protection_rule :
10
- # To guarantee Maintained check is occasionally updated. See
11
- # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
12
7
workflow_dispatch :
13
8
schedule :
9
+ # Runs at 22:45 UTC on Thursday.
14
10
- cron : ' 45 22 * * 4'
15
11
push :
16
12
branches : [ "main" ]
27
23
security-events : write
28
24
# Needed to publish results and get a badge (see publish_results below).
29
25
id-token : write
30
- # Uncomment the permissions below if installing in a private repository.
31
- # contents: read
32
- # actions: read
33
26
34
27
steps :
35
28
- name : " Checkout code"
@@ -40,34 +33,28 @@ jobs:
40
33
- name : " Run analysis"
41
34
uses : ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
42
35
with :
43
- results_file : results .sarif
36
+ results_file : scorecard_results .sarif
44
37
results_format : sarif
45
38
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
46
39
# - you want to enable the Branch-Protection check on a *public* repository, or
47
40
# - you are installing Scorecard on a *private* repository
48
41
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
49
42
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
50
43
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.
58
47
publish_results : true
59
48
60
- # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
61
- # format to the repository Actions tab.
62
49
- name : " Upload artifact"
63
50
uses : actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
64
51
with :
65
- name : SARIF file
66
- path : results .sarif
52
+ name : Scorecard results
53
+ path : scorecard_results .sarif
67
54
retention-days : 5
68
55
69
56
# Upload the results to GitHub's code scanning dashboard.
70
57
- name : " Upload to code-scanning"
71
58
uses : github/codeql-action/upload-sarif@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
72
59
with :
73
- sarif_file : results .sarif
60
+ sarif_file : scorecard_results .sarif
0 commit comments