You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.github/workflows/ci.yml:9-12 sets issues: write and pull-requests: write at workflow level, so all 6 jobs inherit them. Only megalinter appears to need pull-requests: write; no job appears to use issues: write. Third-party actions inside the inheriting jobs (oven-sh/setup-bun, ytanikin/pr-conventional-commits) receive the excess scope. .github/workflows/release.yml:7-9 has the same pattern with contents: write and pull-requests: write.
Fix
Set permissions: {} at workflow level, then grant specific scopes per-job:
ci.yml: only megalinter appears to need pull-requests: write. Drop issues: write entirely — no apparent consumer.
release.yml: split contents: write to release-please, id-token: write already scoped (keep), pull-requests: write only where consumed.
Risk
Low. Every job (including third-party actions) inherits more permission than it uses. Tightening reduces the blast radius of any action in the workflow.
Activity
fix(ci): scope workflow permissions to minimum per-job (ECLI-004) (#259)