GitHub Blocks pull_request_target in Public Repos on 2 December. Four Routes to the Same Attack Stay Open.
The default policy covers one trigger in public repositories. Private repos, comment bots, old checkout pins and your own event policy sit outside it.
On 2 December 2026, GitHub Actions starts refusing to run workflows triggered by pull_request_target in public repositories, unless a policy says otherwise. The changelog entry is short and the date has already slipped once, from 2 November. Two brownouts on 9 and 16 November gave maintainers a two-hour preview of what stops working.
Most write-ups this month answer one question: will my labeller bot break? That is worth knowing, and there is a section on it below. The more useful question for anyone who owns a CI estate is the opposite one. After 2 December, which routes to the same attack are still open? Reading GitHub's own documentation alongside two independent analyses gives a count of four, and at least two of them apply to companies that have never accepted a fork pull request to a public repository.
What the pull_request_target block does on 2 December
The mechanism is a default policy, not a removal of the trigger. In September GitHub shipped workflow execution protections, a policy layer built on the rulesets framework that lets an administrator allowlist which events and which actors may start a workflow. On 17 September it added one default rule to public repositories: block pull_request_target. That rule has been running in evaluate mode since, meaning runs proceed and the would-be blocks show up in policy insights.
On 2 December the rule moves from evaluate to enforced. A blocked attempt creates a failed run with an error annotation and the workflow does not execute. The scope is public repositories on GitHub Free, Team and Enterprise Cloud. Private repositories, internal repositories and GitHub Enterprise Server are outside it.
There is a second, older layer that gets confused with this one. Since June, actions/checkout has refused to check out a fork's pull request head under untrusted triggers unless the workflow sets allow-unsafe-pr-checkout: true. The policy stops the workflow from starting. The checkout guard stops one specific step inside a workflow that did start. They fail in different ways, and they have different holes.
Why this trigger, and why the dangerous version is one line away
A workflow on pull_request that runs for a fork gets a read-only token and no secrets. A workflow on pull_request_target runs in the context of the base repository: it gets a read/write token and access to repository and organisation secrets, even when the pull request comes from a stranger's fork. That design exists so a bot can label or comment on outside contributions. It becomes an exploit, usually called a pwn request, the moment the workflow checks out the contributor's code and runs any of it: a build script, a test, an install hook.
on: pull_request_target
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # fork code
- run: npm ci && npm test # runs it, with secrets in reachRemove the ref line and the same file is harmless. That is the argument the Alpha-Omega security team made on 19 November: maintainers who got this wrong were not careless, because the safe and unsafe files differ by one line that reads as ordinary configuration. Their incident list is the case for a default. Ultralytics in December 2024 began with a pull_request_target workflow and ended with malicious releases on PyPI. Trivy was compromised the same way in early 2026, and about three weeks later a token exposed through it was used to publish malicious releases of LiteLLM and Telnyx.
Gap one: private and internal repositories get nothing
The default rule is added only to public repositories. If your company's code lives in private repositories, 2 December changes nothing for you, in either direction.
The usual reply is that private repositories have no anonymous forks, so the risk is absent. It is smaller, not absent. Where an organisation permits forking of private repositories, anyone with read access can open a pull request from a fork, and in a 400-person organisation "anyone with read access" includes contractors, interns and every compromised laptop. A pull_request_target workflow that runs their code hands a read-only collaborator a write token and the repository's secrets. The policy layer works on private repositories; you have to write the rule yourself.
Gap two: three other triggers carry the same privileges
The default names one event. Alpha-Omega lists four that an outsider can fire while the workflow holds the repository's token and secrets.
- issue_comment fires when anyone comments on an issue or pull request. Slash-command bots that check out the pull request on "/test" or "/deploy" are the standard target. The elementary-data compromise in April 2026 used a comment-triggered workflow that interpolated comment text into a shell script; the attacker pushed a commit and a release tag, and the project's own release pipeline published to PyPI.
- issues fires when anyone opens an issue. The Clinejection research showed an attack that started there.
- workflow_run fires with privileges after another workflow finishes. If it downloads an artifact produced by a fork's pull_request run and executes it, the unprivileged run has smuggled code into the privileged one.
GitHub says as much. Its page on using pull_request_target securely notes that any event which runs with secrets can introduce a pwn request, and names issue_comment and workflow_run workflows that fetch and run a fork's code. None of those are blocked by default on 2 December.
Gap three: the checkout guard only guards actions/checkout
The checkout protection covers pull_request_target and pull-request-triggered workflow_run. Wiz tested its edges in October and found three ways a workflow ends up outside it without anyone choosing to opt out.
- Old pins. The guard arrived in v7.0.0 on 18 June and was backported on 20 July to v2.8.0, v3.7.0, v4.4.0, v5.1.0 and v6.1.0. A mutable tag such as @v4 picks it up. A commit SHA that resolves to v4.3.0 does not, and SHA pinning is exactly what security guidance has told teams to do.
- Other ways to fetch code. git fetch, git clone, gh pr checkout and third-party checkout actions never pass through the guard. GitHub's documentation lists the first and third of these itself.
- Other triggers. By Wiz's testing, a comment-triggered bot that checks out refs/pull/N/merge runs unprotected on checkout v7 with no flag set.
Gap four: a policy you already wrote outranks the default
GitHub's documentation says the default goes to public repositories that do not already have an applicable Actions event policy, and that it does not replace one you have configured. Alpha-Omega puts the consequence more bluntly: the default stops applying once you define your own event policy.
Picture an organisation that created an event policy in October to stop workflow_dispatch abuse and left pull_request_target ticked because a labeller needed it. That organisation has an applicable policy. On 2 December it is governed by its own allowlist, pull_request_target included, and someone will report upward that GitHub turned the block on. The same holds for an administrator who, during a brownout, added a broad allow to make a red build go green. The changelog suggests workflow file targeting for this reason: allow the trigger for one named workflow file, not for the repository.
| Route | Default policy | Checkout guard | What closes it |
|---|---|---|---|
| pull_request_target, public repo, no custom policy | Blocked | Guarded on current releases | Nothing to do; check what broke |
| pull_request_target, private or internal repo | Not applied | Guarded on current releases | Write an event policy |
| pull_request_target, repo with its own event policy | Superseded | Guarded on current releases | Remove the event from your allowlist |
| issue_comment bot that checks out the PR | Not blocked | Not covered | Move to workflow_dispatch; drop the event |
| workflow_run that executes a PR artifact | Not blocked | Covers checkout only | Treat artifacts as data, never run them |
| git fetch, gh pr checkout, third-party checkout | Depends on trigger | Bypassed | Review by hand; scan with zizmor |
| GitHub Enterprise Server | Not applied | Depends on action version | Version and policy are yours to manage |
What breaks on the day
The legitimate uses of pull_request_target are the ones that never touch contributor code: labelling by changed paths, posting a welcome comment, checking a contributor licence agreement. Those stop on 2 December in public repositories without a policy. The failure is quiet from the contributor's side. The run appears as failed in the Actions tab with an annotation; the label never arrives and nobody is paged.
There are three ways out. Move the job to pull_request if it can live with a read-only token. Split it into an unprivileged pull_request job and a privileged workflow_run follow-up that reads only metadata. Or allow pull_request_target for that single workflow file through an event policy, after confirming it never executes anything from the fork.
If you write a stricter allowlist while you are in there, two triggers are easy to forget. Merge queues need merge_group, which is absent from Alpha-Omega's recommended starting list of pull_request, push, release, repository_dispatch, schedule, workflow_dispatch and workflow_run. Reusable workflows arrive as workflow_call. Run the policy in evaluate mode for long enough to cover a release cycle and your least frequent scheduled job before switching it to active.
A one-hour audit before 2 December
None of this needs a project. For a single repository:
# 1. Which workflow files use a privileged, outsider-reachable trigger?
grep -rlE "pull_request_target|issue_comment|workflow_run|^\s*issues:" .github/workflows/
# 2. Which of those triggers have fired recently?
gh run list --event pull_request_target --limit 20
gh run list --event issue_comment --limit 20
# 3. Which files fetch PR code outside actions/checkout, or opt out of the guard?
grep -rnE "gh pr checkout|git fetch .*pull/|allow-unsafe-pr-checkout" .github/workflows/
# 4. Static scan (flags these triggers by default)
uvx zizmor .- Open Policy insights under the repository or organisation Actions policies page and read what the default rule would have blocked since September.
- For every checkout pinned to a SHA, confirm the release is at or after the July backport for its major version.
- Decide on private repositories. If any workflow there uses one of the four triggers, write an event policy; on Team and Enterprise plans one organisation-level policy covers every repository, while Alpha-Omega found Free organisations had to apply it repository by repository.
- If you already have an event policy, open it and check whether pull_request_target is on the allowlist, and why.
Code search only sees default branches, so a workflow on a long-lived release branch can survive every step above. The run history in step two is the check that catches it.
The default is a floor
GitHub moved the date by a month and ran brownouts because turning off a trigger that a great many bots depend on is disruptive, and it still chose to do it. That tells you how the platform reads the last two years of incident reports. The same reading applies to issue_comment, and by Wiz's account the checkout changelog already says further hardening may come. Teams that allowlist events now, instead of waiting to be told which one is next, get to make each of those migrations on their own schedule.
Frequently asked questions
Related reading
Optimizely Served Malware to 178 Organisations. A Content Security Policy Blocked It for Only 24.
On 16 November, Optimizely snippets delivered a card skimmer and crypto clipper to 178 organisations. Report URI checked their CSPs: 68 had none, 50 had one that allowed everything, and 24 blocked the payload.
AWS Emulator Passes 56.5% of Its Fidelity Tests and Ships Releases 90 Minutes Apart. Pin One Before CI Trusts It.
AWS's agent-built local emulator publishes its own failing tests. Here is what a fidelity score counts, why patch releases can change your results, and how to pin it in CI.
Postgres 14 Reaches End of Life on 12 November. On RDS, the Date That Bills You Is 1 March 2027.
The Postgres community stops patching version 14 on 12 November 2026. Amazon RDS keeps it in standard support until 28 February 2027, then charges. Here is how to read the gap.