Commit c2b7e81
committed
ci(scorecard): add explicit least-privilege job permissions
The OSSF Scorecard reusable-workflow wrapper job relied on a broad workflow-level
`read-all` and had no job-level permissions (Hypatia `scorecard_wrapper_missing_job_permissions`).
Grant the documented least-privilege set on the job (contents/actions read;
security-events/id-token write) and narrow the workflow-level grant to
`contents: read`.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KfgJznd6jzSeDYsSXGAXkU1 parent 0afe7ca commit c2b7e81
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
15 | 24 | | |
16 | 25 | | |
0 commit comments