File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-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 : [main]
10+ workflow_dispatch :
11+
12+ permissions : read-all
13+
14+ jobs :
15+ analysis :
16+ name : Scorecard analysis
17+ runs-on : ubuntu-latest
18+ # environment: scorecard
19+ permissions :
20+ security-events : write # update code-scanning dashboard
21+ id-token : write # confirm org+repo identity before publish results
22+
23+ steps :
24+ - name : " Checkout code"
25+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
26+ with :
27+ persist-credentials : false
28+
29+ - name : " Run analysis"
30+ uses : ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
31+ with :
32+ results_file : results.sarif
33+ results_format : sarif
34+ publish_results : true # publish to OSSF Scorecard REST API
35+ # repo_token: ${{ secrets.SCORECARD_TOKEN }} # read-only fine-grained token to read branch protection settings
36+
37+ - name : " Upload results"
38+ uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
39+ with :
40+ name : SARIF file
41+ path : results.sarif
42+ retention-days : 5
43+
44+ # Upload the results to GitHub's code scanning dashboard.
45+ - name : " Upload to code-scanning"
46+ uses : github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
47+ with :
48+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments