Starting 2 December 2026, GitHub Actions blocks pull_request_target events by default in all public repositories on Free, Team and Enterprise Cloud unless an Actions event policy allows them. A second test block runs on 16 November from 16:00 to 18:00 UTC. Maintainers should audit workflows and add policies.
Table of contents 6 sections
- GitHub will block pull_request_target by default in public repositories from 2 December, after moving the date from 2 November.
- A brownout on 16 November from 16:00 to 18:00 UTC will fail blocked runs, following an earlier one on 9 November.
- The rule covers public repositories on Free, Team and Enterprise Cloud, but not private repositories or Enterprise Server.
- Maintainers who still need the trigger can allow it through an Actions event policy, including for named workflow files.
- Review of what the rule would block is available only on Enterprise Cloud, so smaller projects must audit workflows by hand.
From 2 December, GitHub Actions pull_request_target workflows will be blocked by default in all public repositories unless an Actions event policy explicitly allows them. GitHub announced the change in a changelog post dated 2 November, and a second test block, called a brownout, runs on 16 November.
What changes for GitHub Actions pull_request_target
The pull_request_target trigger runs a workflow in the context of the base repository, not the fork that opened the pull request. That gives it access to the repository's secrets and token permissions. GitHub's stated reason is that running untrusted fork code under that trigger can compromise a pipeline or expose secrets.
After the change, a blocked run fails with an error annotation and the workflow does not execute. The rule covers public repositories on GitHub Free, Team and Enterprise Cloud. Private and internal repositories are unaffected, and GitHub Enterprise Server is not included. According to GitHub's changelog, the enforcement date was originally 2 November and has moved to 2 December.
Two brownouts before enforcement
GitHub is running two temporary blocks as a warning. Each lasts from 16:00 to 18:00 UTC, on 9 November and 16 November. During those windows, blocked runs fail. Afterward, the rule returns to evaluate mode, where workflows run with warnings.
Two hours is about 8 percent of a day, so a repository could miss the test if its pull requests arrive at other times. That is a reason to check your workflow files and run history now, not wait for a failure. Anyone who sees failed runs with an error annotation on 16 November has found a workflow that will keep failing from 2 December.
Why pull_request_target keeps causing breaches
Security researchers call the abuse pattern a pwn request. Socket's write-up says researchers have warned about it since at least 2021 and that variations of it contributed to supply chain incidents involving Nx, PostHog and TanStack. The risk arises when a privileged workflow checks out and runs code from a fork, or when attacker-controlled pull request data such as a title or branch name is passed into a shell command.
GitHub had already tightened the checkout action in June. Socket says the new policy goes further by blocking the trigger itself, including for workflows that use it safely. Maintainers who did everything right now have to opt back in.
Attacks on build pipelines are a growing worry for developers generally. Our report on an AI supply chain attack on developer tools shows how a single trusted dependency can reach many machines.
How to prepare your repositories
GitHub's guidance has three parts:
- Use the Insights view for Actions policies to see which workflow runs the default rule would block. GitHub told maintainers to do this before the first brownout.
- Decide for each workflow whether it still needs the trigger. If it does not, move it to a safer trigger.
- If a workflow depends on pull_request_target, create an Actions event policy that explicitly allows it. The policy can target specific workflow files, so you can keep one automation without enabling the trigger for the whole repository.
Search your repositories for pull_request_target in the .github/workflows folder and list every hit. Check each one for a checkout of the pull request head, and for any step that places a title, body or branch name into a shell command. Those are the patterns attackers look for, and a quick review of them is worth doing even for workflows you wrote yourself, since the original author may have left the project. Where the workflow only labels or comments on pull requests, it can often run on the plain pull_request trigger or on workflow_run, although Socket's article does not give migration steps and GitHub's documentation is the place to confirm them.
A gap for small open source projects
Policies can be set at repository, organization and enterprise level for public repositories, including on free plans. Socket reports that evaluate mode, the setting that lets administrators review what the rule would block before it applies, is available only on Enterprise Cloud. Smaller open source teams have asked how to measure the impact without it.
Suggestions in the community include searching manually for pull_request_target, reviewing past workflow runs and testing allowlist policies in a fork. Those are workarounds and not a replacement for a built-in preview, so smaller projects should budget time for the audit before 2 December.
What to do before 2 December
Run the search this week, write down which workflows need an explicit policy and look for failures during the 16 November window. Existing event policies are not replaced by the new default, so check any you already have. Then watch GitHub's changelog for a further delay, which has happened once already, and do not assume it will happen again.
0 comments
No comments yet — be the first.