TechNews
GitHub Actions now blocks pull_request_target workflows by default in public repositories
Since Dec 2, GitHub Actions blocks workflows triggered by pull_request_target in public repositories that have no event policy allowing them. The trigger gives code from forks a route to a repository's secrets.
GitHub Actions has started blocking workflows triggered by pull_request_target in public repositories by default. “Starting Wednesday, December 2, 2026, GitHub Actions will block pull_request_target workflows by default in affected public repositories unless an applicable GitHub Actions event policy explicitly allows them,” GitHub said in its changelog on Dec 2.
GitHub announced the date on Nov 2. Enforcement had first been planned for that day; GitHub moved it to Dec 2 and scheduled two temporary enforcement windows, or “brownouts”, in between so maintainers could find affected workflows.
Why the trigger is risky
Most pull request workflows run with limited rights when the pull request comes from a fork. pull_request_target is different: it runs in the context of the base repository. “pull_request_target runs in the context of the base repository and can access its secrets,” GitHub explains. “If a workflow executes untrusted code from a fork, that code could compromise your pipeline or steal secrets.”
Workflows that check out and build a fork’s code under this trigger are a well-known way into open-source build pipelines, because anyone can open a pull request against a public repository.
Who is affected
The default rule applies to public repositories on GitHub Free, GitHub Team and GitHub Enterprise Cloud. It does not apply to private or internal repositories, or to GitHub Enterprise Server. If a repository already has an applicable Actions event policy, that policy still applies and the default rule does not replace it.
Blocked runs fail with an error annotation, and the workflow does not execute.
What maintainers should do
- Check for blocked runs. GitHub’s policy insights show which workflow runs the rule blocks.
- Switch to a safer trigger where you can. For most checks on fork pull requests, the plain pull_request event is enough.
- Allow the trigger only where it is needed. If a workflow really needs pull_request_target, create or update an Actions event policy that allows it. The policy can be limited to specific workflow files.
GitHub’s documentation sets the bar for allowing it: “Workflows triggered by this event should not check out, build, or run code from an untrusted pull request with access to repository secrets or a privileged GITHUB_TOKEN.”
Sources
- Topics
- Supply chain
- Hardening
Spotted a mistake? Report an error
Related coverage
More in Tech ›CybersecurityNews
Kaspersky ties EAGERBEE attacks in Russia and Belarus and a new PhantomNet backdoor to the CoughingDown group
TechNews
node-tar 8 fixes 20 archive flaws, including symlink escapes, but needs Node.js 22
TechNews