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
{{ message }}
Repository navigation
[Code Quality] Add explicit permissions to 14 workflows with default_permissions_on_risky_events #12596
Fix security issue where 14 workflows triggered by risky events (issue_comment, pull_request_target) use default (overly broad) permissions. This violates the principle of least privilege and increases attack surface.
Security Impact
When workflows are triggered by risky events, they run with the repository's full context and secrets. Default permissions grant excessive access (contents: write, issues: write, etc.), which could be exploited if the workflow has vulnerabilities.
Affected Workflows
The following 14 workflows need explicit minimal permissions:
ai-moderator.md
archie.md
brave.md
cloclo.md
grumpy-reviewer.md
mergefest.md
pdf-summary.md
plan.md
pr-nitpick-reviewer.md
q.md
scout.md
security-review.md
tidy.md
unbloat-docs.md
Suggested Changes
Add explicit minimal permissions to YAML frontmatter in each workflow:
Activity
github-actions commentedon Jan 29, 2026
🍪 Issue Monster has assigned this to Copilot!
I've identified this issue as a good candidate for automated resolution and assigned it to the Copilot agent.
The Copilot agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪