Commit 4813289
fix: add explicit permissions to workflow files
Add minimal permissions blocks to all three workflow files to resolve
code scanning alerts for missing-workflow-permissions (alerts #3, #12, #14).
This follows the principle of least privilege by explicitly declaring
only the permissions each workflow needs rather than inheriting the
default (potentially overly broad) token permissions.
- release.yml: contents: write (create/update draft releases)
- auto-merge.yml: contents: read (App token handles merge operations)
- cla.yml: contents: write, pull-requests: write, actions: read
Co-Authored-By: OpenCode <noreply@opencode.ai>1 parent 58dd80a commit 4813289
3 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
0 commit comments