Commit 2c70879
ci: add least-privilege permissions to GitHub Actions workflows (#3238)
## Summary
- Add explicit least-privilege `permissions` blocks to workflow files
flagged by CodeQL.
- Scopes derived from workflow operations (build, artifacts, Danger,
release git push).
- Resolves **6** open `actions/missing-workflow-permissions` alerts.
## Linear
- Parent: [APPSEC-164](https://linear.app/stream/issue/APPSEC-164)
## Test plan
- [ ] CI green
- [ ] Code scanning alerts close after merge
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Updated GitHub Actions workflow permissions to use clearer, scoped
permission settings.
* Restricted automation to read-only access for pull request checks
where possible, while preserving required write access for CI tasks.
* Improved consistency and security across repository automation
workflows.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Peter Matkovski <matkovski@Peters-MBP.local>
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent c89366b commit 2c70879
3 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
0 commit comments