---
title: "GitHub Actions blocks pull_request_target by default in public repos from 2 December"
summary: "GitHub’s changelog of 2 November and its Actions docs: which repositories the default rule blocks, why the trigger is risky, how to allow it; plus org limits from 5 January."
url: https://www.thetechbag.com/blog/github-actions-pull-request-target-blocked-by-default-2-december
format: Note
desk: "Cloud & DevOps"
region: Global
published: 2026-12-02
published_at: 2026-12-02T19:45:00+05:30
facts_checked: 2026-12-02
author: TechBag (The TechBag Journal)
tags: ["pull_request_target blocked","GitHub Actions pull_request_target","GitHub Actions December 2","GitHub platform limits","pwn request","workflow execution protections","GitHub Actions event policy","allow-unsafe-pr-checkout","actions/checkout v7","GitHub organization user limit","GitHub Enterprise Cloud limits","GitHub Actions security","TanStack cache poisoning","software supply chain"]
cover: https://www.thetechbag.com/blog/covers/github-actions-pull-request-target-blocked-by-default-2-december.png
---

# GitHub Actions blocks pull_request_target by default in public repos from 2 December

*GitHub’s changelog of 2 November and its Actions docs: which repositories the default rule blocks, why the trigger is risky, how to allow it; plus org limits from 5 January.*

Note · Cloud & DevOps · By TechBag · Published 2026-12-02 · Facts checked 2026-12-02 · Canonical: https://www.thetechbag.com/blog/github-actions-pull-request-target-blocked-by-default-2-december

The short version

1. From 2 December GitHub Actions blocks pull_request_target in public repositories with no Actions event policy allowing it; private and internal repositories and GitHub Enterprise Server are untouched.[1]
2. The trigger runs with the base repository’s secrets and a write token, so a workflow that runs a fork’s code hands both to the fork’s author.[3]
3. Maintainers check Policy insights, move to pull_request where secrets are not needed, or allow named workflow files in an event policy.[3] [6]

From today, GitHub Actions refuses the `pull_request_target` trigger by default. “Starting December 2, 2026, GitHub Actions will block pull_request_target events by default in all public repositories, unless an applicable Actions event policy explicitly allows them,” GitHub’s changelog says; enforcement had first been set for 2 November.[1] The block is a default rule GitHub added on 17 September, when it made workflow execution protections generally available, and it has run in “evaluate” mode since then, recording which runs it would stop.[2] It covers public repositories on GitHub Free, Team and Enterprise Cloud. Private and internal repositories and GitHub Enterprise Server are not affected, and a repository that already has an applicable event policy keeps it.[1] [3]

## Why the trigger is dangerous

A pull request from a fork normally runs under the `pull_request` event, which GitHub treats as untrusted: a read-only `GITHUB_TOKEN` and no secrets. `pull_request_target` makes one change. The workflow file comes from the base repository’s default branch, and it runs with the base repository’s token and secrets. That is safe while nothing from the fork runs. The risk begins when the workflow checks out the pull request’s code and builds or tests it: a fork whose Makefile, build script or dependency carries commands then runs them with the repository’s secrets. GitHub calls this a “pwn request” and says it “has been the root cause of multiple supply-chain compromises”.[3] In September it called flaws in these workflows “one of the most commonly exploited vulnerabilities in action workflows”.[2]

The May wave of the npm worm began this way. An attacker forked TanStack’s router repository and opened a pull request that triggered a `pull_request_target` workflow, poisoning the Actions cache; the real release workflow later restored that cache, and the attacker’s code took the tokens it used to publish to npm, Orca Security reported.[5] GitHub has narrowed the trigger in steps since: `actions/checkout` v7 refuses to fetch fork code in these workflows, and they now get read-only access to the default branch’s cache.[4] [3]

**Figure: GitHub narrowed pull_request_target in steps: a checkout guard in June, two brownouts in November, a block on 2 December**

*GitHub’s changes to the pull_request_target trigger, 18 June to 2 December 2026*

| Date | Event | Detail |
| --- | --- | --- |
| 18 Jun 2026 | Checkout guard | actions/checkout v7 refuses common pwn-request patterns; backported to supported versions on 20 July |
| 17 Sept 2026 | Default rule added | Evaluate mode on public repositories without an event policy |
| 21 Oct 2026 | Date moved | Enforcement put back from 2 November to 2 December |
| 2 Nov 2026 | Brownouts set | Changelog post with two test windows |
| 9 Nov 2026 | First brownout | 16:00–18:00 UTC: blocked runs failed with an error annotation |
| 16 Nov 2026 | Second brownout | 16:00–18:00 UTC |
| 2 Dec 2026 | Blocked by default | Public repositories without an applicable event policy |

Source: GitHub changelog, 18 June, 17 September (note of 21 October) and 2 November 2026 · as of 2 December 2026, 7:15pm IST

## What a maintainer does

First, look. Policy insights, under Actions policies in the repository, organisation or enterprise sidebar, lists runs that were blocked or would have been.[6] In the two brownouts, blocked attempts showed up as “failed runs with an error annotation”, and the workflows did not execute.[1]

Then choose. A workflow that needs no secrets can move to `pull_request`. One that must keep `pull_request_target` needs an event policy that allows it: Settings, then Actions, then Policies in a repository or organisation; the Policies tab, then Actions, then Policies in an enterprise. Workflow file targeting allows only the named workflows. Otherwise, leave the default rule to block the trigger.[3] [6] GitHub’s warning is that such workflows “should not check out, build, or run code from an untrusted pull request with access to repository secrets or a privileged GITHUB_TOKEN”. If one is kept, its docs ask for a least-privilege token, only the secrets it needs, isolated and ephemeral runners, and CodeQL scanning of the workflows.[3]

ReportedThe checkout opt-out is named to be seen

A workflow that must check out fork code can set `allow-unsafe-pr-checkout: true` on `actions/checkout`. GitHub says the input is “intentionally named to be easy to spot in code review and static analysis”, and that it should be used only once the checked-out code is never executed.[3] How the May wave turned a pull request into signed npm releases is in [our Analysis of three npm worm waves](https://www.thetechbag.com/blog/npm-worm-valid-provenance-supply-chain).

## Separately: hard limits from 5 January

GitHub’s changelog of 1 December sets platform limits from 5 January 2027 on github.com, across Free, Team and Enterprise Cloud and the data-resident ghe.com plans, though not Enterprise Server. Near a soft limit, administrators get banners and email; at a hard limit nothing is deleted, but actions that add usage, such as adding a member or creating an organisation, “may be blocked”. Accounts already above the limits may be given custom ones.[7] [8]

50,000

users per organisation, hard limit (soft: 25,000)

GitHub

50,000

teams per organisation, hard limit (soft: 25,000)

GitHub

1,000

organisations per Enterprise Cloud account, hard limit (soft: 500)

GitHub

100,000

users per Enterprise Cloud account, hard limit (soft: 50,000)

GitHub

How we did this

Figures as of 2 December 2026, 7:15pm IST

Every rule, date and quotation is GitHub’s, from its changelog and documentation, read on 2 December. GitHub gives 2 December for enforcement but no hour; when we last checked, at 7:15pm IST, it had posted nothing newer, and its documentation still described the rule as running in evaluate mode until that date. The September post says enforcement applies to repositories “using the default pull_request_target policy before general availability”. The 2 November date comes from GitHub’s own note that enforcement “was previously scheduled for November 2”. The TanStack chain is Orca Security’s account.

Spotted an error? [Write to us](https://www.thetechbag.com/blog/standards#corrections); corrections are published at the foot of the piece.

Sources

1. [GitHub Changelog: pull_request_target blocked by default December 2](https://github.blog/changelog/2026-11-02-pull_request_target-blocked-by-default-december-2/) — 2 November 2026
2. [GitHub Changelog: Workflow execution protections in GitHub Actions generally available](https://github.blog/changelog/2026-09-17-workflow-execution-protections-in-github-actions-generally-available/) — 17 September 2026, editor’s note 21 October 2026
3. [GitHub Docs: Securely using pull_request_target](https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target) — read 2 December 2026
4. [GitHub Changelog: Safer pull_request_target defaults for GitHub Actions checkout](https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/) — 18 June 2026, editor’s note 15 July 2026
5. [Orca Security: TanStack npm supply chain worm](https://orca.security/resources/blog/tanstack-npm-supply-chain-worm/) — 12 May 2026
6. [GitHub Docs: Governing execution of GitHub Actions workflows](https://docs.github.com/en/actions/how-tos/administer/control-workflow-execution) — read 2 December 2026
7. [GitHub Changelog: Upcoming GitHub platform limits protect the customer experience](https://github.blog/changelog/2026-12-01-upcoming-github-platform-updates-to-protect-the-customer-experience/) — 1 December 2026
8. [GitHub Docs: Organization and enterprise account limits](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-organization-settings/organization-and-enterprise-account-limits) — read 2 December 2026

**Disclosure.** TechBag is a software reseller: it earns when companies buy through it, including from vendors named here. The analysis is TechBag’s own; no vendor paid for or saw this piece before publication. Facts are labelled reported, TechBag count or our view. [How the Journal works](https://www.thetechbag.com/blog/standards).

**Read this next:** [Valid provenance, malicious code: what three npm worm waves broke](https://www.thetechbag.com/blog/npm-worm-valid-provenance-supply-chain) — How the April, May and August open-source worms put signed releases on npm and PyPI, and the settings that keep the next one out.

Go deeper on TechBag

- [GitHub Enterprise](https://www.thetechbag.com/github/github-enterprise) — Actions policies, runners and caches, secret scanning and code scanning
- [4,837 hijacked GitHub accounts probed 61,764 repos; at least 1,806 ran a secret stealer](https://www.thetechbag.com/blog/github-4837-hijacked-accounts-61764-repos-ci-secrets) — another route to CI secrets: a hijacked account pushing a workflow
- [Developer tools guide](https://www.thetechbag.com/browse/devops/developer-tools) — the code platforms and pipelines these policies sit in
