Commit c466365
committed
ci: grant security-events: write to SARIF-uploading jobs
Three jobs uploaded SARIF files to GitHub's Security tab but did not
declare the permission:
- quality.yml Static Analysis — gosec → upload-sarif
- security.yml Gosec Security Scan — gosec → upload-sarif
- security.yml Trivy Scan — trivy → upload-sarif
All three failed with 'Resource not accessible by integration'. Added
the minimal scoped permissions block (contents: read + security-events:
write) per job. CodeQL already had it.1 parent 48f5aa9 commit c466365
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| |||
0 commit comments