File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Scorecard supply-chain security
2+ on :
3+ branch_protection_rule :
4+ schedule :
5+ - cron : ' 45 0 * * 1'
6+ push :
7+ branches : [ "main" ]
8+
9+ permissions : read-all
10+
11+ jobs :
12+ analysis :
13+ name : Scorecard analysis
14+ runs-on : ubuntu-latest
15+ if : github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request'
16+ permissions :
17+ security-events : write
18+ id-token : write
19+
20+ steps :
21+ - name : " Checkout code"
22+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+ with :
24+ persist-credentials : false
25+
26+ - name : " Run analysis"
27+ uses : ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
28+ with :
29+ results_file : results.sarif
30+ results_format : sarif
31+ publish_results : true
32+
33+ - name : " Upload artifact"
34+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
35+ with :
36+ name : SARIF file
37+ path : results.sarif
38+ retention-days : 5
39+
40+ - name : " Upload to code-scanning"
41+ uses : github/codeql-action/upload-sarif@v3
42+ with :
43+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments