Commit d377d6f
committed
security: add explicit permissions to discover and aggregate-security jobs
**Security Issue:**
GitHub Code Scanning alerts #241 and #242 flagged missing explicit
permissions in full-build.yml workflow jobs.
**Risk:**
Without explicit permissions, GITHUB_TOKEN may receive overly broad
permissions by default, violating principle of least privilege.
**Fix:**
Added minimal permissions blocks to:
- discover job (line 30): contents: read
- aggregate-security job (line 582): contents: read
Both jobs only need read access to checkout code and read manifests.
No write permissions required.
**Resolves:**
- Code Scanning Alert #241 (discover job)
- Code Scanning Alert #242 (aggregate-security job)1 parent 18847b1 commit d377d6f
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
584 | 586 | | |
585 | 587 | | |
586 | 588 | | |
| 589 | + | |
| 590 | + | |
587 | 591 | | |
588 | 592 | | |
589 | 593 | | |
| |||
0 commit comments