If you maintain a public repository, one line of YAML may stop working a few weeks from now: on: pull_request_target. GitHub said on November 2 that, starting December 2, 2026, GitHub Actions will block that event by default in all public repositories unless an applicable Actions event policy explicitly allows it. The date slid by a month, since enforcement was previously scheduled for November 2, but the direction didn't move at all.
I haven't touched anyone's repository for this post; it is a reading of GitHub's changelog and its docs page on securely using the event. It is also a checklist, because the useful part isn't the announcement. It's the five things you can check in an afternoon so the first failed run isn't the first time you hear about it.
The calendar, because the brownouts are the real deadline
Before permanent enforcement, GitHub will temporarily enforce the default during two windows. Failed runs in those windows are not a drill; the workflows won't execute.
| Date (2026) | What happens to blocked pull_request_target runs |
|---|---|
| Until November 9 | Evaluate mode: runs go ahead, and policy insights show what would be blocked |
| November 9, 16:00 to 18:00 UTC | Brownout: affected runs fail with an error annotation |
| After the window | Back to evaluate mode, runs go ahead with warnings |
| November 16, 16:00 to 18:00 UTC | Second brownout, same behaviour |
| December 2 | Permanent enforcement for affected public repositories |
Read the timeline this way: your real first deadline is the morning of November 9 in US Pacific time, which is 8:00 to 10:00 AM PT, not December 2. Anything that responds to fork pull requests (labelers, triage bots, coverage comments) will visibly fail if you haven't prepared.
Private and internal repositories aren't affected, and neither is GitHub Enterprise Server. The change covers public repositories on GitHub Free, GitHub Team and GitHub Enterprise Cloud.
1. Find out which workflows would be blocked
The default rule runs in evaluate mode right now, so GitHub is already tracking which runs it would block. The changelog's advice is to use Insights before the first brownout. That gives you a list of workflow runs the rule would have stopped, which is a better starting point than grepping YAML, because it shows you the ones that actually fire.
Still grep afterwards. Search every repository for pull_request_target, since a workflow that fires rarely, such as a quarterly release bot, won't show up in a week of insights.
Expand
A sample GitHub Actions workflow file shown in GitHub's own documentation graphic
2. Ask whether the workflow needs higher trust at all
This is the question the docs push hardest. A pull_request_target workflow gets the base repository's GITHUB_TOKEN and access to repository and organization secrets. By default it is safe, because the workflow file and any actions/checkout call without a ref come from the default branch, not from the pull request, so no fork code runs.
The danger appears when an author overrides that. The docs show the classic case: a workflow that points actions/checkout at the pull request head (ref: ${{ github.event.pull_request.head.sha }}) and then runs make test. The checkout alone doesn't execute anything. The next step does, because the Makefile now comes from the fork. An attacker only needs a pull request whose Makefile, build script, test command, dependency or config file contains malicious commands, and those commands run with the base repository's secrets and token. The docs call this pattern a "pwn request" and say it has been the root cause of multiple supply-chain compromises.
If your workflow only labels issues or posts a comment and never touches fork code, moving it off pull_request_target might not be possible, and that is exactly the use case the policy allow-list exists for. If it builds or tests fork code, it should almost certainly not be on this event.
3. Switch to pull_request where you can
For workflows that don't need secrets, the docs say to move to a safer event such as pull_request. That event runs the workflow file from the pull request's merge commit, which for a fork is controlled by someone without write access, so GitHub restricts it to a read-only GITHUB_TOKEN, withholds other secrets and applies fork approval policies. The code checked out and the workflow that runs are consistent, and the blast radius is small.
The cost is that some automation, like posting authenticated status checks or writing labels, needs write access that pull_request doesn't give. For those, keep pull_request_target but strip it down to the one trusted action, and don't check out the fork.
The docs add a warning that applies beyond this one event: pwn requests aren't unique to pull_request_target. An issue_comment or workflow_run workflow that fetches and runs a fork's pull request code is vulnerable in the same way, and a workflow_run workflow should treat artifacts uploaded by other workflows as untrusted data, since their contents can come from a fork. Blocking one event doesn't fix the habit.
4. If you must keep it, allow it deliberately
When a workflow genuinely must stay on pull_request_target, the changelog gives two options: leave the default block in place, or explicitly allow the event in an applicable Actions event policy. You can use workflow file targeting to allow specific workflows instead of the whole repository. GitHub points to its documentation on controlling workflow execution for the configuration, and there is a REST API for managing policies programmatically if you have many repositories.
I'd take the narrow route every time. Allowing the event for one named workflow file is a decision you can explain in a review. Allowing it for the whole repository is a blanket exception that outlives the person who made it. The docs' own warning is worth quoting in spirit: only allow the event when necessary, and don't check out, build or run untrusted pull request code in a workflow with secrets or a privileged token.
Which fix fits which workflow? This table is my own summary of the changelog and docs guidance.
| What the workflow does | Suggested handling |
|---|---|
| Labels, triages or comments, never checks out fork code | Allow the event narrowly through a policy with workflow file targeting |
| Runs tests or builds on fork code, needs no secrets | Move to pull_request |
| Runs tests on fork code and needs secrets such as a private registry | Redesign: split into an unprivileged build and a trusted follow-up, and treat artifacts as untrusted |
| No longer needed | Delete it and let the default block stay |
The third row is the hard one, and it is also where compromises have happened. If you recognise one of your workflows in it, fix that first.
5. Check the repositories you don't think about
Forks, archived projects, templates and the demo repo you made for a conference talk can all carry old workflows. The rule applies to public repositories that don't already have an applicable event policy, and GitHub says it will enforce for affected repositories that were using the default policy before general availability. If you already configured an applicable event policy, the docs say the default doesn't replace it, so check what your existing policies say about this event.
Expand
GitHub changelog graphic announcing generally available GitHub Actions workflow lockfiles
While you're in there, pin things. GitHub also made workflow lockfiles generally available on October 28, and I covered how to adopt them in this earlier piece on pinning workflows. Blocking a risky trigger and pinning what your workflows pull in attack different halves of the same supply-chain problem.
What to do on November 9
Pick someone to watch the repository during the first brownout window, 16:00 to 18:00 UTC. Failed runs will carry an error annotation, so you can see precisely which workflow was stopped and by which rule. After the window the rule returns to evaluate mode and runs proceed with warnings, which gives you a second window on November 16 to confirm that your fixes worked.
If a run fails and it is a workflow you've already converted, the problem is probably a trigger left behind in another file. If it fails and it's one you haven't looked at, you just found one of the workflows you were supposed to audit. Either way you learned it on a Monday in a two-hour test, not on December 2 in front of contributors.
Frequently Asked Questions
Does this affect my private repositories?
No. Private and internal repositories aren't affected, and the change doesn't apply to GitHub Enterprise Server.
Is the change reversible once enforced?
You can explicitly allow pull_request_target through an applicable Actions event policy, including for specific workflow files. The docs warn that allowing it brings back the original risk if a workflow runs fork code with privileges.
Why was the date moved?
The changelog says only that enforcement was previously scheduled for November 2, 2026. A separate GitHub note dated October 21 had already updated the automatic enforcement date to December 2.
Originally published on Mango Developer.

