File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : OpenSSF Scorecard
2+ on :
3+ branch_protection_rule :
4+ schedule :
5+ - cron : ' 0 3 * * 0'
6+ push :
7+ branches : [master]
8+ workflow_dispatch :
9+
10+ # Declare default permissions as read only.
11+ permissions : read-all
12+
13+ jobs :
14+ analysis :
15+ name : Scorecards analysis
16+ runs-on : ubuntu-latest
17+ permissions :
18+ # Needed to upload the results to code-scanning dashboard.
19+ security-events : write
20+ actions : read
21+ contents : read
22+
23+ steps :
24+ - name : ' Checkout code'
25+ uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
26+ with :
27+ persist-credentials : false
28+
29+ - name : ' Run analysis'
30+ uses : ossf/scorecard-action@c8416b0b2bf627c349ca92fc8e3de51a64b005cf # v1.0.2
31+ with :
32+ results_file : results.sarif
33+ results_format : sarif
34+ repo_token : ${{ secrets.GITHUB_TOKEN }}
35+ publish_results : true
36+
37+ # Upload the results as artifacts.
38+ - name : ' Upload artifact'
39+ uses : actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2.3.1
40+ with :
41+ name : SARIF file
42+ path : results.sarif
43+ retention-days : 5
44+
45+ # Upload the results to GitHub's code scanning dashboard.
46+ - name : ' Upload to code-scanning'
47+ uses : github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # v1.0.26
48+ with :
49+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments