Commit 138ae99
authored
ci: drop contents and actions read from the scorecard job (#97)
Both are private-repository permissions and this repo is public.
The only Actions API call Scorecard makes is ListWorkflowRunsByFileName, from
the Packaging and Binary-Artifacts checks. That endpoint is publicly readable:
requesting it for a public repo with no authentication at all returns 200.
Upstream's starter workflow ships `contents: read` and `actions: read` commented
out under "uncomment if installing in a private repository", and OSSF runs
Scorecard on its own public repos -- ossf/scorecard and ossf/scorecard-action --
with `security-events: write` and `id-token: write` alone. Those runs are green
and score Packaging 10, Binary-Artifacts 10 and CI-Tests 10, which is the same
evidence for dropping `contents: read`: their checkout step works without it.
Follows #94, which merged before this was raised in review on qBraid/pyqasm#412.1 parent 53da882 commit 138ae99
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
0 commit comments