Commit c2c3939
fix: Move permissions to workflow level for CodeQL SARIF upload
The SARIF upload was failing with "Requires authentication" because
job-level permissions may not be sufficient when the repo's default
token is restricted. Moving permissions to the workflow level ensures
the GITHUB_TOKEN has security-events:write for uploading results.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent cd5d5b1 commit c2c3939
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
0 commit comments