News · GitHub (Microsoft) · 2 min read
Event date: · Published:
GitHub Actions blocks pull_request_target by default
GitHub enforced a default block on pull_request_target workflows in affected public repositories on December 2, 2026, reducing a known way to steal CI secrets from fork pull requests.
GitHub announced on December 2, 2026 that GitHub Actions now blocks pull_request_target workflows by default in affected public repositories, closing off a well known way to steal CI secrets through fork pull requests. The change is described in GitHub's changelog entry.
What changed
- GitHub's changelog entry enforcing the change is dated December 2, 2026.
- GitHub Actions now blocks pull_request_target workflows by default in affected public repositories unless an explicit event policy allows them.
- The enforcement date matches the timeline GitHub first announced on November 2, 2026.
- The change applies to public repositories on the GitHub Free, GitHub Team and GitHub Enterprise Cloud plans.
- Private and internal repositories are not affected by the change.
- Maintainers can review blocked workflow runs in Policy Insights.
Why it matters for AI builders
pull_request_target workflows run in the context of the base repository, so they can access its secrets even when triggered by code from a fork. GitHub notes that this creates risk when untrusted fork code executes with that elevated access. As more repositories accept AI agent generated or AI assisted external contributions, that risk grows, since automated or AI written fork pull requests are a common way to trigger such workflows. Blocking the event by default across GitHub's public repositories reduces this attack surface without requiring maintainers to act first.
What maintainers can do next
Repository maintainers who need pull_request_target can switch to the safer pull_request event instead, or create an explicit event policy permitting pull_request_target after confirming their workflows will not run untrusted code with elevated access. Reviewing blocked runs in Policy Insights is the starting point for deciding which path fits a given repository.
Sources
- GitHub Actions will block pull_request_target by default in affected public repos (GitHub, December 2, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.