GitHub Actions now blocks pull_request_target workflows by default in affected public repositories
GitHub says that starting December 2, 2026, GitHub Actions blocks pull_request_target workflows by default in affected public repositories, unless a GitHub Actions event policy explicitly allows them. It describes the post as a reminder of a change announced on November 2; the enforcement date has not changed.
- Why. Workflows triggered by
pull_request_targetrun in the base repository's context and can access its secrets. GitHub says running untrusted code from a fork in that context can expose secrets or compromise the build pipeline. - Who is affected. Public repositories on GitHub Free, GitHub Team and GitHub Enterprise Cloud. Private and internal repositories are not affected, and an event policy already configured still applies.
- What to do. GitHub advises maintainers of workflows that respond to fork pull requests to check Policy insights for blocked runs and, where appropriate, switch to a safer event such as
pull_request. A workflow that needspull_request_targetneeds an event policy that allows it, which can be scoped to specific workflow files. GitHub says to allow it only after confirming the workflow will not run untrusted pull request code with access to secrets.
Sources
Get news like this as a push.
AI Tracker alerts you when something changes for the tools you use.