TL;DR
- In a November 2 changelog post, GitHub said GitHub Actions will block the
pull_request_targetevent by default in public repositories from December 2, 2026, unless an Actions event policy explicitly allows it. Two live rehearsals run on November 9 and November 16, from 16:00 to 18:00 UTC. - The workflows that break first are not exotic. They are labelers, welcome bots, commit linters and Slack notifiers, and some of them hold tokens or webhook URLs as secrets.
- The block retires one doorway, not the underlying problem: text written by a stranger arriving in a process that holds your keys. That problem also lives in
issue_comment,workflow_run, your own webhook receivers, and the AI agent workflows GitHub made generally available five days earlier.
On November 3, a contributor using the handle inoway46 opened issue #1108 in the nodejs/admin repository. The title was dry: "Confirm pull_request_target policy coverage for nodejs/node." The body listed five workflow files on the main branch of one of the most depended-upon projects in software: contributor-guidance.yml, label-pr.yml, commit-lint.yml, comment-labeled.yml and notify-on-review-wanted.yml. The author could not see the project's policy settings with their own permissions, so they asked someone who could to check before November 9. They added one careful line: this was "not a request for a blanket allowance."
Open those five files and you find the ordinary plumbing of an open source project. One posts a welcome message to first-time contributors. One applies labels. One checks that the first commit message follows the project's format. One comments when a maintainer marks something stalled or fast-track. And one, when a pull request is labeled "review wanted," posts a message to a Slack channel through a secret called SLACK_WEBHOOK. None of them builds or runs the code in the pull request. All of them start from the same trigger, and on December 2 that trigger stops working by default.
The quick reading of GitHub's announcement goes like this: a notoriously dangerous trigger is finally being switched off, and the only cost is a month of migration chores. That reading is half right. The trigger has a long, documented history of turning outside pull requests into stolen credentials. But the danger was never the trigger's name. It was what the trigger does: it delivers an event written by anyone on the internet into a process that holds the repository's secrets. GitHub is closing that door by default. The same shape stays open in other events, in your own webhook handlers, and most of all in the new generation of automation that reads natural language and acts on it. What follows explains the mechanism, traces the incidents that forced the change, and lays out what to do before the first brownout on November 9.
What GitHub changed, and the ratchet that led here
The facts are narrow and worth getting exactly right. According to GitHub's November 2 changelog entry, titled "pull_request_target blocked by default December 2," the default rule applies to public repositories on GitHub Free, GitHub Team and GitHub Enterprise Cloud. Private and internal repositories are not covered, and neither is GitHub Enterprise Server. Workflows still run if an applicable Actions event policy explicitly allows pull_request_target, and that allowance can be scoped to individual workflow files rather than the whole trigger.
Until December 2, the rule runs in evaluate mode, which records the runs it would have blocked without stopping them, and those records surface in a policy Insights view. During the two brownout windows, the block is real: affected runs fail with an error annotation and do not execute, and afterward the rule drops back to evaluate mode. Enforcement had originally been scheduled for November 2. An editor's note dated October 21, added to GitHub's earlier general availability post for workflow execution protections, records the move to December 2.
The block is the latest click of a ratchet GitHub has been turning for a year, and the order matters:
- November 7, 2025: GitHub announced that, effective December 8, 2025,
pull_request_targetworkflows would always be taken from the repository's default branch, not from whatever base branch a pull request targets. The stated reason was that outdated, vulnerable workflows on other branches could still run after being fixed on the default branch. - June 18, 2026:
actions/checkoutv7 began refusing to fetch fork pull request code insidepull_request_targetworkflows, and insideworkflow_runworkflows triggered by pull request events. The opt-out is an input deliberately named to stand out in review:allow-unsafe-pr-checkout. - July 20, 2026: the same refusal was backported to older supported major versions of
actions/checkout(v1 excluded). Workflows pinned to a floating tag like@v4picked it up automatically. Workflows pinned to a commit SHA did not. - September 17, 2026: workflow execution protections reached general availability: allow lists governing which actors and which events can start a workflow, plus the new default rule for
pull_request_target, in evaluate mode. - November 2, 2026: the changelog post fixing December 2 as the enforcement date, with brownouts on November 9 and 16.
Read as a sequence, this is a platform narrowing one trigger from every side: first where the workflow file comes from, then what the checkout step will fetch, then whether the event fires at all. The question worth asking is what each of those steps leaves untouched.
How a pull request becomes a stranger's message delivered to your keys
Start with the literal mechanism. When someone opens a pull request from a fork, GitHub can start two different kinds of workflow. A pull_request workflow runs the fork's version of the workflow file, in a context GitHub treats as untrusted: for fork pull requests, the GITHUB_TOKEN is read-only and repository secrets are withheld. A pull_request_target workflow runs the base repository's own workflow file, in the base repository's context. GitHub's June changelog spells out what that context carries: the base repository's GITHUB_TOKEN, its secrets, and access to the default branch's cache.
That second mode exists for a good reason. A labeler needs write access to put a label on a pull request from a fork, and a pull_request run from a fork cannot do that. GitHub's own actions/labeler README makes this exact case today. Its example workflows use on: pull_request_target, and it tells users who hit a "Resource not accessible by integration" error to switch to that trigger, because it "safely grants additional permissions." The same README then warns, one paragraph later, about "a potentially dangerous misuse" that may let malicious pull request authors steal secrets or gain write access.
Both statements are true, and the gap between them is the whole story. The workflow file is trusted, because it came from the base repository. The event that started it is not. A pull_request_target run receives the full pull request webhook payload, and large parts of that payload are authored by whoever opened the pull request: the title (github.event.pull_request.title), the body, the branch name (github.event.pull_request.head.ref), the commit SHA at the head of the fork (github.event.pull_request.head.sha), and the files in that commit. If any of those reach a shell or get checked out and executed, the stranger is now running code with your keys.
Here is the smallest version of the bug, in the form that has actually caused incidents:
on: pull_request_target
jobs:
check-title:
runs-on: ubuntu-latest
steps:
- run: echo "Checking ${{ github.event.pull_request.title }}"
The ${{ }} expression is expanded before the shell ever sees the line, so a title containing a quote, a semicolon and a command becomes part of the script. Now compare how Node.js handles the same kind of data in notify-on-review-wanted.yml. The pull request title is passed in through an environment variable, TITLE_PR: ${{ github.event.pull_request.title }}, and the script only ever references $TITLE_PR. Through an environment variable, the title stays a string. Interpolated into the script, it becomes code. The difference is one line, and it is the difference between a notifier and a breach.
If you want an image to hold for the rest of this piece, think of a building's front desk. Deliveries arrive all day from people the staff have never met. A pull_request workflow is a desk clerk with no keys: they can look at a package, but they cannot open any door. A pull_request_target workflow is a clerk with the master key ring on their belt, because some deliveries genuinely need to go upstairs. The clerk is trustworthy. The packages are not. Every incident in this story is a package that talked the clerk into using a key.
The comparison is useful but undersells one thing. In a real building, the clerk can tell a package from an instruction. In a CI pipeline, the line between data and instructions is drawn by quoting rules, checkout inputs and file paths, and it is very easy to draw in the wrong place without noticing.
The trigger was never the danger. The danger is a stranger's text arriving in a room full of keys.
Three incidents, one shape
GitHub Security Lab has written about this pattern for years under the name "pwn requests." What turned it from a security lab topic into a platform default was a run of real compromises, each of which followed the same outline.
Ultralytics, December 2024. On December 4, 2024, versions of the popular Ultralytics Python package, the library behind the YOLO computer vision models, were published with a cryptocurrency miner inside. In an analysis two days later, William Woodruff, who maintains the zizmor workflow scanner, traced the entry point to pull requests whose branch names carried shell payloads. A composite action passed the branch name into a shell run block, and the vulnerable workflow ran on pull_request_target. Woodruff noted that the payload copied a proof of concept from Adnan Khan's public research on GitHub Actions cache poisoning, though he wrote at the time that the exact pivot from the privileged workflow was not yet clear. HiddenLayer and GitGuardian published their own reconstructions of the same chain. Versions 8.3.41 and 8.3.42 are named across the accounts.
SpotBugs to reviewdog to tj-actions, late 2024 to March 2025. In March 2025, the widely used tj-actions/changed-files action was altered to dump CI secrets into build logs. The flaw was tracked as CVE-2025-30066, and CISA added it to its Known Exploited Vulnerabilities catalog on March 18, 2025. When Palo Alto Networks' Unit 42 traced the chain back in an April 2025 update, as reported by The Register and Infosecurity Magazine, the first link was a malicious pull request against spotbugs/sonar-findbugs that exploited a pull_request_target workflow to steal a maintainer's personal access token. From there the attacker moved to a reviewdog maintainer's token, repointed a reviewdog action tag at malicious code, and rode that into tj-actions. One privileged workflow in a project most developers have never heard of was the first domino.
Nx, August 2025. On August 26, 2025, malicious versions of several Nx packages were published to npm and stayed up for about four hours, according to the Nx team's own postmortem. The root cause was a pull request title validation workflow running on pull_request_target that echoed the unsanitized title into a shell command. The workflow had been reverted on the project's main development branch "almost immediately," but the attacker opened a pull request against an outdated branch that still contained it. Two settings made it worse: default workflow permissions were still read and write, and the publish workflow accepted workflow_dispatch, so the stolen token could trigger a publish from the attacker's branch, where the malicious script exfiltrated the npm token. The malicious packages then scanned developers' machines for secrets and, per Nx, "attempted to use local AI tools (like Claude and Gemini)" to help.
Line those up and the remediation sequence above stops looking arbitrary. The outdated-branch trick in Nx is precisely what the December 2025 default-branch change closes. The checkout-and-execute pattern is what actions/checkout v7 refuses. And the December 2 block cuts the remaining cases off at the event level. Each fix is aimed at a specific route an attacker already took.
Nx's own fixes are the instructive part. The team moved npm publishing to trusted publishing over OIDC, so there is no long-lived npm token left to steal, and put publishing behind manual two-factor approval. That is a change to what the clerk carries, not to which door the package came through.
Every one of these attacks began with text: a title, a branch name, a pull request. None of them began with a zero-day.
What December 2 covers, and what it leaves open
- Covered:
pull_request_targetruns in public repositories on Free, Team and Enterprise Cloud with no applicable event policy allowing them. - Not covered by the block: private and internal repositories, and GitHub Enterprise Server.
- Not covered by the block: other events that run with base repository privileges and can carry attacker-written text, including
issue_commentandworkflow_run. GitHub's June changelog saysactions/checkoutv7 does not block pwn requests triggered by events such asissue_comment. - Not covered by the checkout guard: fork code fetched by other means inside a
runblock, such asgitcommands orgh pr checkout, and workflows pinned to a commit SHA from before the guard. - Not covered by anything event-level: script injection through
${{ }}interpolation, which needs no checkout at all. - Restored by an allow: an explicit event policy that allows
pull_request_targetbrings back the original risk for that workflow. The policy decides whether the event fires, not what the workflow does with it.
The turn: a default is not a fix
The block is a good change, and it will catch a real population of neglected workflows: the ones nobody has looked at since a template was copied in years ago. But read the sidebar again and notice what kind of control it is. It is an allow list on an event name. It answers "may this trigger fire here?" and says nothing about "what happens to the stranger's text once it does?"
That distinction matters because the legitimate users of pull_request_target are exactly the ones who will write an allow. Node.js's five workflows are a fair sample of what that looks like. They need the privileged context for real reasons: contributor-guidance.yml uses a token stored as GH_USER_TOKEN because, as a comment in the file explains, first-timer associations "are only returned for privileged API calls," and another comment notes that the event's own author association "may not expose private organization membership." The Slack notifier needs its webhook URL. These workflows are, as far as their published code shows, written carefully. The point is that after December 2, the careful ones and the careless ones look identical to the platform: both carry an allow.
Meanwhile, the events the block leaves alone keep the same shape. An issue_comment workflow, the kind that powers "/deploy" or "/rerun" commands in pull request threads, runs in the base repository's context and receives a comment body written by whoever typed it. A workflow_run workflow can download artifacts produced by an untrusted pull_request build and process them with secrets in scope. A security researcher at Wiz, Shay Berkovich, laid out these gaps in an October 26 analysis of the rollout, alongside self-hosted runners that persist state between jobs and the observation that the "require approval for external contributors" setting gates pull_request workflows, not pull_request_target.
None of this is a criticism of GitHub's sequencing. A platform can only change defaults where it can predict the breakage, and it has been honest in its own changelogs about what each step does not cover. The criticism belongs to the reading that treats December 2 as the end of the problem. If you allow the trigger, you have opted back into all of it. If you do not use the trigger, you may still have the same pattern under a different event name.
GitHub can lock a door by name. It cannot lock the idea of a stranger's words reaching your keys.
The agent-shaped hole
Here is the connected story most coverage of the block has skipped. On October 28, five days before the pull_request_target post, GitHub announced that GitHub Agentic Workflows was generally available on github.com for Free, Team and Enterprise plans. The project, which came out of GitHub Next, lets you write automation as a Markdown file of natural-language instructions with a YAML header, which compiles to ordinary Actions YAML and runs a coding agent, GitHub Copilot by default or one you bring. The same day's changelog also listed "New tools, triggers, and cost controls for Copilot Automations."
The project's trigger reference lists what an agentic workflow can start from. It includes issues, issue_comment, pull_request_review_comment, discussion_comment, workflow_run, repository_dispatch, command-style slash_command and label_command triggers, and both pull_request and pull_request_target. In other words, the triggers that carry stranger-written text are the natural home of a tool whose whole job is to read text and act on it.
To its credit, the design assumes the agent can be talked into things. Its security architecture page says the agent job "runs with minimal read-only permissions." Writes such as opening a pull request are "buffered as artifacts by SafeOutputs rather than applied immediately," and a separate job applies them with scoped permissions, which the page says "ensures that even a fully compromised agent cannot directly modify repository state." Network traffic goes through a proxy with a domain allow list. An integrity filter screens GitHub content by author trust and merge status before the model sees it, and public repositories get min-integrity: approved automatically. Who may trigger a workflow defaults to [admin, maintainer, write], and strict mode rejects pairing pull_request_target with roles: all.
That is the front desk redesigned for a world where packages can talk: the clerk no longer carries the keys, and a second clerk, who never reads the package, decides what actually goes upstairs. It is a better architecture than the old pwn request workflows ever had. It also comes with its own honest caveats. The same documentation says the default threat detection policy is warn-mode, that "detection is defense in depth, not proof that arbitrary code or artifacts are safe," and that a read-only GITHUB_TOKEN "does not remove other credentials or privileged host access." The trigger reference adds a line every automation builder should tape to the monitor: permission to trigger a workflow is not human approval, and does not prove a payload is safe.
The Nx malware's attempt to enlist local AI tools was a small preview of where this goes. In the old pattern, the attacker had to write a branch name that a shell would execute. In the new one, the attacker writes an issue that a model will follow. The guardrails moved from quoting rules to permission boundaries, which is the right move. But the event at the front of the pipe is still a stranger's text, and the December 2 block does not touch an agent that starts from issue_comment.
Natural language is the new branch name.
The same bug, outside GitHub
It would be a mistake to read all of this as a GitHub Actions story, because the shape is general. Every webhook receiver you run is, structurally, a pull_request_target workflow: a privileged process that wakes up when an outside event arrives and acts on a payload it did not write. That is the bargain of event-driven design over polling: you react faster, and you let the outside world decide when your code runs. If you build integrations, this is the most useful thing to take from the block.
Consider signatures. A GitHub App or a webhook endpoint you host should verify X-Hub-Signature-256, the HMAC GitHub computes over the payload with your shared secret, and our guide to choosing between HMAC and JWT for webhook auth covers why. But a valid signature proves one thing: GitHub sent this payload. It does not prove that the pull request title inside it was written by anyone you trust. A perfectly authenticated webhook can deliver a perfectly hostile string. Verification protects the envelope, and the danger is in the letter.
Note also what the December 2 policy actually governs. It controls whether an Actions workflow run starts. It says nothing about pull_request webhook deliveries to your own servers, where the same stranger-written fields arrive and where the handler often holds broader credentials than any CI job. If your bot service reads pull_request.title into a shell command, a SQL query or an LLM prompt, no GitHub default will protect it. The same applies to the catch-hook style triggers in no-code platforms, and to the patterns we covered in building event-driven AI agents with MCP and webhooks: the event is an input, and inputs from strangers stay untrusted no matter how they were delivered.
Then there are secrets that are not obviously secrets. The Node.js notifier holds a Slack incoming webhook URL. Slack's own documentation is blunt about these: "Your webhook URL contains a secret. Don't share it online, including via public version control repositories," and it notes that "Slack actively searches out and revokes leaked secrets." The URL is the credential; anyone holding it can post into that channel. Teams that wire up flows like our Stripe to Slack pipeline tend to treat that URL as configuration. Inside a privileged workflow, it should be inventoried like an API key, because it is one.
A signature tells you who delivered the envelope, not who wrote the letter.
The numbers, and how far they go
There is no official count of how many repositories use pull_request_target, and GitHub's announcement did not give one. The best public figure is a single developer's scan, published on DEV Community in late September, and it should be read with that in mind. The author pulled the 1,000 most-starred public, non-fork, non-archived repositories on September 26, read only the workflow files on their default branches, and reported that 269 of them, about 27 percent, ran at least one pull_request_target workflow, across 540 files.
The more interesting numbers are the small ones. The scan counted nine repositories checking out fork code in a way the new checkout guard would refuse, three checking out fork code with actions/checkout pinned to a version from before the guard, four that had already set allow-unsafe-pr-checkout: true, and nine fetching pull request code with git fetch or gh pr checkout, which bypasses the guard entirely. It also found eight repositories running an AI or review action on the trigger, including Anthropic's claude-code-action in five of them and OpenAI's codex-action in one.
Three caveats keep those figures honest. First, Actions policies are not visible from outside, so some of those 269 repositories may already allow the trigger and will see no change. Second, the scan measures workflows that depend on the trigger, not workflows that are vulnerable; most of the most-used actions on the list, like actions/labeler and actions/github-script, are housekeeping tools. Third, the author built the checker and promotes it in the post. The direction of the finding is still useful: the trigger is common in exactly the most visible projects, and the risky patterns are rare but not hypothetical.
On impact, the figures that do come from primary sources are about incidents, not prevalence. The Nx packages were live for about four hours. The Ultralytics releases shipped a miner. The tj-actions compromise landed in CISA's exploited vulnerabilities catalog within four days of discovery. None of those numbers tells you how many workflows were exploitable and never touched, which is the figure that would actually measure the risk, and nobody has it.
What we know, and what we don't
We know the scope, the dates and the mechanics of the block from GitHub's own changelog and documentation, which now give December 2 as the enforcement date. We know the incidents from the affected projects' own postmortems and from multiple independent security write-ups. We know what Agentic Workflows supports and how it is designed from the project's public reference pages.
We do not know how many public repositories will add a blanket allow on December 1 to make the failures stop, which is the outcome that would quietly undo most of the benefit. We do not know whether GitHub plans similar defaults for issue_comment or workflow_run; the June changelog says further hardening of other events may come in future releases, which is a possibility, not a plan. And we cannot say whether the Node.js project had already configured a policy when issue #1108 was opened. As of this writing, the issue showed no public reply.
One more practical unknown: blocked runs do not announce themselves to the people who relied on them. A first-time contributor whose welcome message never arrives will not file a bug. A maintainer whose Slack ping stops will assume the channel went quiet. The failure will be visible in the Actions tab and in policy Insights, and close to invisible everywhere else.
A checklist for the week before November 9
- Find every use, not just the obvious one. Run
grep -rln "pull_request_target" .github/workflows/in each public repository, then check policy Insights for runs the default rule would block. Do the same search forissue_comment,workflow_runandrepository_dispatch, because those carry the same risk without the same deadline. - Sort each workflow into one of two piles. If it only reads pull request metadata and writes labels or comments, it is a candidate for a narrow allow. If it builds, tests or runs anything from the fork, it belongs on
pull_request, with any privileged step split into a separate workflow that never touches fork code. - Allow by file, never by trigger. Use workflow file targeting in the event policy so the exception covers the audited file and nothing else, and treat any later change to that file as a security review.
- Move every event field out of the script. Anything from
github.eventthat a contributor can type (title, body, branch name, comment) should reach a shell only through an environment variable, as Node.js does withTITLE_PR. A workflow scanner such as zizmor will flag the interpolated cases, and our dev tools coverage follows the wider field of CI linters. - Check your pins. A checkout pinned to a commit SHA from before July 20, 2026 has no fork-checkout guard. Look for
allow-unsafe-pr-checkoutand forgit fetchorgh pr checkoutinsiderunblocks, which bypass the guard by design. - Inventory what the clerk carries. List every secret a privileged workflow can read, including Slack and Discord webhook URLs, and ask whether each one needs to be there. Where you can, replace long-lived publish tokens with OIDC-based trusted publishing, the change Nx made after its incident.
- Use the brownouts as a test. Watch the Actions tab during 16:00 to 18:00 UTC on November 9. Anything that fails is a workflow you depend on and may not have known about. Nothing in GitHub's description suggests a blocked run is replayed later, so plan for the gap the way you would for any dropped event that needs a retry or a dead letter path, and make any re-run safe to repeat, the core idea behind idempotent webhooks.
- Apply the same rules to agents. If you adopt agentic workflows, keep the default trigger roles, keep the integrity filter on, leave writes to safe outputs, and treat the threat detection job as a second opinion, not a gate. Our AI agents coverage tracks how these permission models are changing.
- Audit your own receivers. For every webhook endpoint you host, trace each payload field from the request to wherever it ends up, the same discipline laid out in our guide to resilient webhook error handling. Signature verification first, then treat every stranger-authored field as hostile input, especially if it ends up in a prompt.
Whose words reach your keys
The instinct after a change like this is to ask which triggers are safe now. It is the wrong question, and GitHub's own sequence of fixes shows why: every time one route closed, the risk was still sitting in the same place, at the point where an event written by someone outside the project meets a process holding the project's credentials. Locking pull_request_target by default makes the most common version of that meeting rarer. It does not make the meeting go away.
The better question is the one the front desk always had to answer: whose words reach the keys, and what happens to them on the way? Asked that way, December 2 is less a deadline than an inventory. It is a chance to find the welcome bots, labelers and Slack notifiers you forgot were holding secrets, and to decide on purpose which of them deserve to keep the key ring. The teams that treat it as a chore will add an allow and move on. The teams that treat it as an audit will find the same pattern in their comment commands, their webhook handlers and their first AI agents, while it is still cheap to fix. For more on the plumbing underneath, our webhooks section is where we keep track.
FAQ
Does the December 2 block affect private repositories?
No. According to GitHub's changelog, the default rule applies to public repositories on GitHub Free, Team and Enterprise Cloud. Private and internal repositories and GitHub Enterprise Server are not covered, though the same security risks apply to them and organizations can create their own event policies.
What happens to a blocked workflow during the brownouts?
During the November 9 and November 16 windows, from 16:00 to 18:00 UTC, affected runs fail with an error annotation and do not execute. Outside those windows, until December 2, the rule stays in evaluate mode and only records what it would have blocked.
Can I keep using pull_request_target after December 2?
Yes, if an applicable Actions event policy explicitly allows it. GitHub recommends scoping the allowance to specific workflow files. An allowed workflow carries the same risks it always did, so it should only handle pull request metadata and never check out or execute fork code.
Is switching to pull_request always the fix?
For workflows that build or test fork code, usually yes, because fork pull requests run there with a read-only token and no repository secrets. Workflows that need write access, such as labelers, either stay on pull_request_target with a narrow allow or split into an unprivileged step and a separate privileged step that never runs fork code.
