File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Scorecards' GitHub action
2
+
3
+ name : Scorecard supply-chain security
4
+ on :
5
+ # For Branch-Protection check. Only the default branch is supported. See
6
+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
7
+ branch_protection_rule :
8
+ schedule :
9
+ - cron : ' 36 16 * * 2'
10
+ push :
11
+ branches : [ "main" ]
12
+
13
+ # Declare default permissions as read only.
14
+ permissions : read-all
15
+
16
+ jobs :
17
+ analysis :
18
+ name : Scorecard analysis
19
+ runs-on : ubuntu-latest
20
+ permissions :
21
+ # Needed to upload the results to code-scanning dashboard.
22
+ security-events : write
23
+ # Needed to publish results and get a badge (see publish_results below).
24
+ id-token : write
25
+
26
+ steps :
27
+ - name : " Checkout code"
28
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
29
+ with :
30
+ persist-credentials : false
31
+
32
+ - name : " Run analysis"
33
+ uses : ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
34
+ with :
35
+ results_file : results.sarif
36
+ results_format : sarif
37
+ publish_results : false
38
+
39
+ # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
40
+ # format to the repository Actions tab.
41
+ - name : " Upload artifact"
42
+ uses : actions/upload-artifact@v4
43
+ with :
44
+ name : SARIF file
45
+ path : results.sarif
46
+ retention-days : 5
47
+
48
+ # Upload the results to GitHub's code scanning dashboard (optional).
49
+ # Commenting out will disable upload of results to your repo's Code Scanning dashboard
50
+ - name : " Upload to code-scanning"
51
+ uses : github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
52
+ with :
53
+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments