File tree Expand file tree Collapse file tree 1 file changed +20
-19
lines changed
Expand file tree Collapse file tree 1 file changed +20
-19
lines changed Original file line number Diff line number Diff line change 33 pull_request :
44 workflow_dispatch :
55
6- permissions :
7- contents : read
8- security-events : write
9- id-token : write
6+ permissions : read-all
107
118jobs :
129 analyze :
1310 runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ security-events : write
14+ id-token : write
1415 timeout-minutes : 20
1516 steps :
16- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
17- with :
18- # Checkout the base repository ref, not the PR's head commit
19- ref : ${{ github.event.pull_request.base.sha }}
20- persist-credentials : false
21- - name : ' Run Scorecard'
22- uses : ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # ratchet:ossf/scorecard-action@v2.4.3
23- with :
24- results_file : ' results.sarif'
25- results_format : ' sarif'
26- publish_results : false
27- - name : ' Upload to GitHub Security Tab'
28- uses : github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # ratchet:github/codeql-action/upload-sarif@v4.35.1
29- with :
30- sarif_file : ' results.sarif'
17+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
18+ with :
19+ # Checkout the base repository ref, not the PR's head commit
20+ ref : ${{ github.event.pull_request.base.sha }}
21+ persist-credentials : false
22+ - name : ' Run Scorecard'
23+ uses : ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # ratchet:ossf/scorecard-action@v2.4.3
24+ with :
25+ results_file : ' results.sarif'
26+ results_format : ' sarif'
27+ publish_results : false
28+ - name : ' Upload to GitHub Security Tab'
29+ uses : github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # ratchet:github/codeql-action/upload-sarif@v4.35.1
30+ with :
31+ sarif_file : ' results.sarif'
You can’t perform that action at this time.
0 commit comments