File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-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
+ # To guarantee Maintained check is occasionally updated. See
7
+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
8
+ schedule :
9
+ - cron : ' 15 4 * * 5'
10
+ push :
11
+ branches : [ "master" ]
12
+
13
+ permissions : read-all
14
+
15
+ jobs :
16
+ analysis :
17
+ name : Scorecard analysis
18
+ runs-on : ubuntu-latest
19
+ permissions :
20
+ # Needed to upload the results to code-scanning dashboard.
21
+ security-events : write
22
+ # Needed to publish results and get a badge (see publish_results below).
23
+ id-token : write
24
+
25
+ steps :
26
+ - name : " Checkout code"
27
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
28
+ with :
29
+ persist-credentials : false
30
+
31
+ - name : " Run analysis"
32
+ uses : ossf/scorecard-action@99c53751e09b9529366343771cc321ec74e9bd3d # v2.0.6
33
+ with :
34
+ results_file : results.sarif
35
+ results_format : sarif
36
+ repo_token : ${{ secrets.SCORECARD_TOKEN }}
37
+ publish_results : true
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@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
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.
49
+ - name : " Upload to code-scanning"
50
+ uses : github/codeql-action/upload-sarif@807578363a7869ca324a79039e6db9c843e0e100 # v2.1.27
51
+ with :
52
+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments