Commit 66194f3
ci: scope GITHUB_TOKEN to least privilege (#9)
Repo default is write (gh api repos/.../actions/permissions/workflow ->
default_workflow_permissions: write), so every job here ran with a
write-capable token even though this workflow now runs on every PR,
including from forks, and only the release-asset upload step actually
needs write access. Top-level contents: read, overridden to
contents: write on the one job whose release step needs it.
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>1 parent 9f53e4f commit 66194f3
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
11 | 20 | | |
12 | 21 | | |
13 | 22 | | |
| |||
32 | 41 | | |
33 | 42 | | |
34 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
35 | 48 | | |
36 | 49 | | |
37 | 50 | | |
| |||
0 commit comments