File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Scorecards supply-chain security
2
+ on :
3
+ branch_protection_rule :
4
+ push :
5
+ branches : [main]
6
+
7
+ permissions : read-all
8
+
9
+ jobs :
10
+ analysis :
11
+ name : Scorecards analysis
12
+ runs-on : ubuntu-latest
13
+ permissions :
14
+ security-events : write
15
+ actions : read
16
+ contents : read
17
+ id-token : write
18
+
19
+ steps :
20
+ - name : " Checkout code"
21
+ uses : actions/checkout@v4
22
+ with :
23
+ persist-credentials : false
24
+
25
+ - name : " Run analysis"
26
+
27
+ with :
28
+ results_file : results.sarif
29
+ results_format : sarif
30
+ repo_token : ${{ secrets.PERSONAL_TOKEN }}
31
+ publish_results : true
32
+
33
+ - name : " Upload artifact"
34
+ uses : actions/upload-artifact@v4
35
+ with :
36
+ name : SARIF file
37
+ path : results.sarif
38
+ retention-days : 5
39
+
40
+ # Upload the results to GitHub's code scanning dashboard.
41
+ - name : " Upload to code-scanning"
42
+ uses : github/codeql-action/upload-sarif@v3
43
+ with :
44
+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments