File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Scorecard supply-chain security
2
+ on :
3
+ # For Branch-Protection check. Only the default branch is supported. See
4
+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
5
+ branch_protection_rule :
6
+ schedule :
7
+ - cron : " 0 9 * * *"
8
+ push :
9
+ branches : [$default-branch]
10
+
11
+ permissions : read-all
12
+
13
+ jobs :
14
+ analysis :
15
+ name : Scorecard analysis
16
+ runs-on : ubuntu-latest
17
+ permissions :
18
+ security-events : write # update code-scanning dashboard
19
+ id-token : write # confirm org+repo identity before publish results
20
+
21
+ steps :
22
+ - name : " Checkout code"
23
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
24
+ with :
25
+ persist-credentials : false
26
+
27
+ - name : " Run analysis"
28
+ uses : ossf/scorecard-action@80e868c13c90f172d68d1f4501dee99e2479f7af # v2.1.3
29
+ with :
30
+ results_file : results.sarif
31
+ results_format : sarif
32
+ publish_results : true # publish to OSSF Scorecard REST API
33
+
34
+ - name : " Upload results"
35
+ uses : actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
36
+ with :
37
+ name : SARIF file
38
+ path : results.sarif
39
+ retention-days : 5
40
+
41
+ # Upload the results to GitHub's code scanning dashboard.
42
+ - name : " Upload to code-scanning"
43
+ uses : github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
44
+ with :
45
+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments