Commit 569fa25
committed
ci: fix secscan permissions for CodeQL upload-sarif
The CodeQL upload-sarif action failed with "Resource not accessible by
integration" because the workflow had no explicit permissions block, so
the GITHUB_TOKEN lacked security-events access. Add a top-level
permissions block granting contents:read and security-events:write, and
set continue-on-error on the upload step so a fork/PR context can no
longer fail the whole run.
Assisted-by: opencode:glm-5.2 [bash] [edit]1 parent a3a4f2a commit 569fa25
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
0 commit comments