Govern how GitHub Actions workflows run within your repository, organization, or enterprise.
Actions policies let you govern how GitHub Actions workflows run. You can configure them in the Policies section of your GitHub Actions settings (separate from the General settings).
Actions policies are available at the enterprise, organization, and repository levels. They currently contain one type of policy: workflow execution protections. GitHub plans to add more policies over time.
With workflow execution protections, you can define an allowlist that controls who can trigger GitHub Actions workflows and which events are permitted to run them. These protections can disrupt several real-world attack patterns:
pull_request_target, including in public repositories where it is most often exploited.workflow_dispatch so untrusted identities cannot start workflows.When enforced, disallowed workflow runs will fail with an error. For example:
Event 'workflow_dispatch' is not allowed to trigger Actions workflows. Workflow file: '.github/workflows/0-welcome.yml'.
GitHub has added a default policy that will block the `pull_request_target` event in public repositories. This policy will be enforced on December 2, 2026. See [Securely using pull_request_target](/en/actions/reference/security/securely-using-pull_request_target#default-policy-for-pull_request_target).
push, pull_request, pull_request_target, and workflow_dispatch.GitHub plans to add more rules over time.
To configure workflow execution protections, see Governing execution of GitHub Actions workflows.
To manage policies programmatically, see REST API endpoints for GitHub Actions policies.