pull_request_target. Some projects will see their automation stop working, so the dates matter.
What is changing
GitHub's changelog says that from December 2 a default event policy blocks the pull_request_target event in public repositories. The permanent enforcement date was originally November 2. It has been moved to December 2.
Scope matters here:
- The change covers public repositories on GitHub Free, GitHub Team and GitHub Enterprise Cloud. It does not cover GitHub Enterprise Server.
- Private and internal repositories are not affected.
- "By default" has a condition attached. GitHub's documentation says the default policy is added to public repositories that do not already have an applicable Actions event policy.
- The default policy does not replace an applicable event policy you have already configured.
If your organization or enterprise already has event rules, check how they layer before assuming anything. GitHub's docs say workflow execution protections are layered, like rulesets, across repository, organization and enterprise levels. In its words, the layering works at all three account levels.
Why GitHub is doing this
pull_request_target runs in the context of the base repository, so it can reach that repository's secrets. GitHub's documentation describes the trigger as safe by default. The workflow file, and any actions/checkout call that doesn't specify a ref, come from the default branch. No fork code runs automatically.
The danger starts when a workflow author overrides that default. A typical case is pointing checkout at the pull request head and then running make test, npm install or a build script. That executes attacker-controlled code with the base repository's token and secrets. GitHub calls this a "pwn request" and says it has been behind multiple supply-chain compromises.
GitHub also notes that this is not unique to one trigger. Any event that runs with secrets can be exploited this way if it fetches and executes untrusted code. Examples are issue_comment and workflow_run workflows that process fork pull request code. The default block narrows the attack surface but does not remove the underlying pattern.
This follows earlier hardening. A November 2025 GitHub changelog said that from December 8, 2025, pull_request_target always uses the default branch for the workflow source and reference. GitHub said the old behavior had led to exploitation of outdated workflows with vulnerabilities presumed fixed on the default branch.
Rollout timeline
The rule starts in evaluate mode. Workflows keep running, and policy insights show which runs would be blocked once enforcement begins. GitHub has also scheduled two temporary enforcement windows, called brownouts.
| Brownout date | Time (UTC) |
|---|---|
| November 9, 2026 | 16:00–18:00 |
| November 16, 2026 | 16:00–18:00 |
During each window, blocked pull_request_target attempts in affected public repositories create failed runs with an error annotation, and the workflows don't execute. After each window the rule returns to evaluate mode, and workflows run again with warnings. Permanent enforcement follows on December 2.
What to do before November 9
- Open Policy insights. In a repository or organization, go to Settings, then Actions, then Policies, and open the Policy insights page. Enterprise owners use the Policies tab, then Actions, then Policies. Insights show runs that would be blocked under evaluate policies and runs actually blocked under active ones.
- Inventory your workflows. Search your
.github/workflowsdirectories forpull_request_target. One public repository's tracking issue suggests a plaingrep -r pull_request_target .github/workflows/as a first pass. - Decide for each workflow. GitHub gives three options:
- Switch to a safer event such as
pull_requestif the workflow doesn't need secrets. This runs the merge-commit workflow with a read-only token for forks. - Explicitly allow
pull_request_targetin an applicable Actions event policy if the workflow truly depends on it. GitHub says you can use workflow file targeting to allow specific workflows rather than the whole repository. - Leave the default in place, and the event will be blocked after enforcement.
- Switch to a safer event such as
- Test during the brownouts. They are a free dry run. Failed runs on November 9 and 16 will show what breaks.
Repository administrators, organization owners and enterprise owners can govern these policies. GitHub also provides REST API endpoints for managing Actions policies programmatically, which helps if you manage many repositories.
Who is most likely to feel it
Some public projects are already finding dependencies. Public issues opened in late October show maintainers working out the impact:
- One open-source project found that a required CLA check would stop working. Its proposed fix is an admin-created Actions event policy under Settings, Actions, Policies, allowing the event for seven specific workflow paths.
- Another repository's issue noted that a review gate triggered on the event would never post its required check, which could leave pull requests stuck.
These are individual maintainer reports, not GitHub statements. They do show the common pattern: bots for labeling, CLA checks, triage and required status checks often use this trigger for legitimate reasons. Those are the workflows to find first.
An allow rule is not a security fix
Adding an exception restores the workflow, but it does not make the logic safe. GitHub's warning is that workflows on this event should not check out, build or run untrusted pull request code with access to secrets or a privileged GITHUB_TOKEN. If you keep a privileged workflow, GitHub recommends the following:
- Give the
GITHUB_TOKENthe least privileges it needs, and use only the secrets the workflow requires. - Keep self-hosted runners isolated and ephemeral, so environments are not reused across runs.
- Guard against other issues, such as command injection through untrusted input. GitHub suggests enabling CodeQL for GitHub Actions.
- Remember the cache restriction.
pull_request_targetworkflows have read-only access to the default branch's cache scope. They can restore entries but can't create or overwrite them, and a failed save appears as a warning. A workflow can opt into a write-capable cache mode, but that reintroduces the cache-poisoning risk.
GitHub also documents an opt-out for the actions/checkout protection, allow-unsafe-pr-checkout: true. The documentation says to use it only after confirming the checked-out code is never executed. It covers only fork pull request refs. It does not cover other untrusted code, such as fetching with git fetch or gh pr checkout, or running a downloaded artifact.
Analysis
This is a sensible default, and likely a painful one for some projects. A trigger that mixes secrets with fork-controlled input has been a repeated source of supply-chain incidents. Blocking it unless someone opts in turns a silent risk into a deliberate decision.
The cost is that maintainers who never audited their automation will find out on a brownout day. The brownouts, the evaluate mode and the earlier slip from November to December are all meant to reduce that surprise. Treat the November 9 window as the point where your inventory should already be done.
One caution is that allow rules can be written too broadly. Allowing the event across a whole repository recreates the exposure GitHub is trying to remove. Targeting specific workflow files, as GitHub suggests, keeps the exception small and easy to review.
Summary
- Enforcement of the
pull_request_targetblock in affected public repositories begins December 2, 2026. - It applies to GitHub Free, Team and Enterprise Cloud, and not to Enterprise Server or private and internal repositories.
- Repositories that already have an applicable event policy keep their own configuration.
- Brownouts run November 9 and November 16, 16:00–18:00 UTC.
- Review Policy insights now, then migrate to
pull_request, allow specific workflow files, or leave the block in place.
References
- pull_request_target blocked by default December 2 GitHub Changelog · 2026-11-02T15:14:46+00:00
- Securely using pull_request_target - GitHub Docs docs.github.com
- Actions pull_request_target and environment branch protections changes github.blog