GitHub Actions blocks pull_request_target by default since 2 December
The trigger that grants secrets and write access is no longer on by default.

Generated image · SecuFocus
At a glance
Key points
Since 2 December 2026, GitHub Actions blocks pull_request_target workflows by default in affected public repositories unless an event policy explicitly allows them.
What changes on 2 December 2026
GitHub Actions now blocks workflows triggered by pull_request_target by default in affected public repositories, unless an applicable event policy explicitly allows the trigger. The vendor states that the enforcement date has not moved since the announcement of 2 November.
The change applies to public repositories on GitHub Free, GitHub Team and GitHub Enterprise Cloud.
Why this trigger is watched
pull_request_target runs the workflow in the context of the base branch, with access to repository secrets and, often, write permissions. A workflow that then fetches the code of the proposed branch can therefore process content coming from an external contribution with those permissions.
That combination, a privileged context plus unreviewed code, is what justifies a default block rather than a simple warning.
What to check in your repositories
Two steps are enough: find the workflows that use this trigger, then read what they do with the code of the proposed branch. A workflow that only labels a pull request or posts a comment does not carry the same profile as one that builds and runs that code.
If an event policy is still needed, it is set in the repository or organisation settings and documented: an exemption granted without a record is lost at the first team change.
Check and explore
Sources for this article
Numbers connect each reference to the passages that use it. Dates show when the documentation was consulted.
This article draws on the sources above. The exercises are for you to try on your devices; SecuFocus does not present them as tests carried out by its editorial team. Interfaces and features can change. Method and corrections.
Cite this article
Keep this reference with the article when you save or share it.