Documentation Index
Fetch the complete documentation index at: https://docs.pipefort.com/llms.txt
Use this file to discover all available pages before exploring further.
| Field | Value |
|---|---|
| Category | CICD-SEC-4 |
| Severity | HIGH |
| Auto-fix | ✗ |
| Source | Repository configuration |
What the check does
ReadsGET /repos/{owner}/{repo}/actions/permissions/workflow. Fires when can_approve_pull_request_reviews is true.
Why it matters
This setting fully defeats branch protection’s review requirement when combined with any of the existing CICD-SEC-4 risks:- Attacker injects code that runs in a workflow (poisoned PR title, compromised action).
- That workflow uses
GITHUB_TOKENto submit an approving review on the attacker’s own PR. - Branch protection counts the approval — the PR merges.
How to fix
Settings → Actions → General → Workflow permissions → uncheck Allow GitHub Actions to create and approve pull requests. Bots that genuinely need to approve PRs (e.g., dependency-update bots) should use a separate bot account with limited scope, not the implicitGITHUB_TOKEN.