# Pull requests: Write (repository)

Tier 2 permission, `permission:pull_requests:write`. Page: https://ghtier.com/tier/permissions/pull-requests-write

Opens, reviews, approves and merges pull requests. An approval can satisfy a review rule when the approver counts as a reviewer.

**Included in roles:** [Triage](https://ghtier.com/tier/roles/repo-triage.md) (Tier 2), [Moderate](https://ghtier.com/tier/roles/repo-moderate.md) (Tier 2), [Write](https://ghtier.com/tier/roles/repo-write.md) (Tier 1), [Maintain](https://ghtier.com/tier/roles/repo-maintain.md) (Tier 1), [Admin](https://ghtier.com/tier/roles/repo-admin.md) (Tier 1), [Collaborator on a personal repository](https://ghtier.com/tier/roles/personal-repo-collaborator.md) (Tier 1), [Owner](https://ghtier.com/tier/roles/org-owner.md) (Tier 0), [All-repository triage](https://ghtier.com/tier/roles/org-all-repo-triage.md) (Tier 2), [All-repository write](https://ghtier.com/tier/roles/org-all-repo-write.md) (Tier 1), [All-repository maintain](https://ghtier.com/tier/roles/org-all-repo-maintain.md) (Tier 1), [All-repository admin](https://ghtier.com/tier/roles/org-all-repo-admin.md) (Tier 0)

**Keys and policies that act as or change it:** [Copilot cloud agent and other AI agents](https://ghtier.com/tier/keys-policies/ai-agent.md) (Tier 2), [Token for the built-in GitHub MCP server](https://ghtier.com/tier/keys-policies/github-mcp-token.md) (Tier 3), [Code owner (CODEOWNERS entry)](https://ghtier.com/tier/keys-policies/codeowners.md) (Tier 2), [Allow GitHub Actions to create and approve pull requests](https://ghtier.com/tier/keys-policies/actions-create-approve-prs.md) (Tier 1)

**Enables techniques:** [Approve your own PR from a second account](https://ghtier.com/attack-paths/technique-sock-puppet.md) (Tier 1), [Have a workflow approve the PR](https://ghtier.com/attack-paths/technique-robot-approval.md) (Tier 1), [Push more commits after approval](https://ghtier.com/attack-paths/technique-stale-approval.md) (Tier 2), [Approve someone else's PR, then push to it](https://ghtier.com/attack-paths/technique-last-push.md) (Tier 2), [Use a trusted colleague's account](https://ghtier.com/attack-paths/technique-other-account.md) (Tier 2), [Trick or outlast the reviewer](https://ghtier.com/attack-paths/technique-trick-reviewer.md) (Tier 2)

**Ways in that use it:** [Member with write access](https://ghtier.com/attack-paths/insider-write.md) (Tier 1), [Untrusted input reaches a privileged workflow](https://ghtier.com/attack-paths/untrusted-input.md) (Tier 1), [Prompt injection into an AI agent](https://ghtier.com/attack-paths/ai-agent.md) (Tier 2)

**Abused in incidents:** [GitHub MCP / agentic token breadth](https://ghtier.com/incidents/agentic-mcp-tokens.md), [hackerbot-claw autonomous agent RCE](https://ghtier.com/incidents/hackerbot-claw.md)

**Strange findings:** [GITHUB_TOKEN may approve pull requests in older repositories](https://ghtier.com/strange-findings/finding-github-token-approves-prs.md), [Pull requests a workflow opens need a person to start their checks](https://ghtier.com/strange-findings/finding-bot-pull-requests-wait-for-approval.md)

**Sources:**
- [GitHub docs](https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps#repository-permissions-for-pull-requests)

From ghtier (https://ghtier.com). Every entry and link: https://ghtier.com/data/graph.json. Tiers: https://ghtier.com/tier.
