Repository navigation
Commit ea26a42
authored
fix(security): AI Fix for Overly Broad Permissions in GitHub Actions Workflows is risky (#301)
This patch mitigates excessive workflow-level permissions in
`.github/workflows/ci.yml` and `.github/workflows/publish.yml` by
replacing workflow-level permission grants with empty permissions blocks
and re-granting only the minimum required scopes (`contents: read` and
`packages: write`) at the job level where they are actually needed.
Aikido used AI to generate this PR.
Low confidence: Aikido has tested similar fixes, which indicate the
correct approach but may be incomplete. Further validation is necessary.
Co-authored-by: aikido-autofix[bot] <119856028+aikido-autofix[bot]@users.noreply.github.com>1 parent e0efa0d commit ea26a42
2 files changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
0 commit comments