# Allow GitHub Actions to create and approve pull requests

Tier 1 key, `key:actions-create-approve-prs`. Page: https://ghtier.com/tier/keys-policies/actions-create-approve-prs

Turned on, a workflow's GITHUB_TOKEN can approve pull requests, and that approval counts towards required reviews. Anyone who can change a workflow can then get code merged without a person reviewing it.

**Related permissions:** [Pull requests: Write (repository)](https://ghtier.com/tier/permissions/pull-requests-write.md) (Tier 2), [Administration: Write (organization)](https://ghtier.com/tier/permissions/organization-administration-write.md) (Tier 0)

**Defenses (checklist):** [Turn off "Allow GitHub Actions to create and approve pull requests"](https://ghtier.com/checklist/cicd-no-actions-pr-approval.md), [CODEOWNERS in place, required on sensitive paths](https://ghtier.com/checklist/repo-codeowners.md)

**Strange findings:** [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)

**Audit log events that show it:** [org.set_workflow_permission_can_approve_pr](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise), [business.set_workflow_permission_can_approve_pr](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise), [repo.set_workflow_permission_can_approve_pr](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise)

**Sources:**
- [GitHub Docs: Disabling or limiting GitHub Actions for your organization](https://docs.github.com/en/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization)

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