Automation

GitHub Actions Blocks pull_request_target by Default on December 2, 2026: How to Fix Affected CI Workflows

Starting December 2, 2026, GitHub Actions enforces a default event policy blocking pull_request_target in public repositories on Free, Team, and Enterprise Cloud unless an Actions event policy explicitly allows it. Blocked workflows fail immediately with startup_failure and zero executed jobs, silently halting auto-labelers, welcome bots, and required fork-PR status checks. Here is how policy layering works, why misconfigured allowlists can accidentally block your pull_request test suite, and how to migrate or scope workflow_path rules safely.

By 0xScorPionSon

10 min read

GitHub Actions Blocks pull_request_target by Default on December 2, 2026: How to Fix Affected CI Workflows

GitHub Actions pull_request_target default event policy architecture

Executive Summary

  • Permanent Default Enforcement (December 2, 2026): Following an initial November 2 target and two scheduled two-hour brownouts on November 9 and November 16, 2026 (16:00–18:00 UTC), GitHub Actions now blocks pull_request_target by default in public repositories on GitHub Free, Team, and Enterprise Cloud that do not already have an applicable Actions event policy.
  • Scope & Immediate Failure Mode: Private repositories, internal repositories, and GitHub Enterprise Server (GHES) are excluded from the default rule. On affected public repositories, blocked pull_request_target runs never start a runner; they terminate immediately with conclusion startup_failure, zero jobs, and a browser run-page error annotation.
  • Policy-Stacking & Allowlist Traps: Independent REST API testing published on December 2, 2026 by DevToolHub demonstrates that Actions event policies layer cumulatively rather than overriding one another—and creating a broad allowlist that permits only pull_request_target without listing pull_request or scoping workflow_path will block your standard CI test suite.
  • Operational Takeaway: Audit every .github/workflows/*.yml file on your default branch today, migrate build/test jobs to pull_request (which runs fork code with a read-only token and no secrets), and use workflow_path-targeted event policies only for trusted triage, labeling, or comment workflows that never execute pull request code.

What Changed & Core Mechanism

The pull_request_target trigger was originally introduced so public open-source repositories could run workflows—such as auto-labelers, contributor welcome bots, and authenticated status checks—on pull requests opened from external forks. Unlike pull_request, which runs fork code in an isolated, unprivileged context with a read-only GITHUB_TOKEN and no repository secrets, pull_request_target executes in the context of the base repository with a writable GITHUB_TOKEN and full access to repository and organization secrets.

That design made pull_request_target a recurring vector for "pwn request" supply-chain compromises whenever a workflow checked out or executed untrusted code from a fork PR. On September 17, 2026, GitHub made workflow execution protections generally available, introducing a default event policy that disables pull_request_target on affected public repositories. After pushing the enforcement date from November 2 to December 2, 2026, GitHub ran the rule in evaluate mode (logging policy insights without blocking runs) punctuated by two live brownouts on November 9 and November 16, 2026 from 16:00 to 18:00 UTC, before flipping to permanent enforcement on December 2, 2026.

How GitHub Evaluates the Default Event Policy

When a pull request event arrives at a public repository on Free, Team, or Enterprise Cloud, GitHub evaluates all applicable enterprise, organization, and repository Actions event policies before allocating a runner:

flowchart TD
    PR["Fork Pull Request Event"] --> CheckRepo{{"Public Repo on Free / Team / GHEC?"}}
    CheckRepo -- "No (Private, Internal, or GHES)" --> NormalRun["Normal Trigger Evaluation"]
    CheckRepo -- "Yes" --> CheckPolicy{{"Applicable Actions Event Policy Exists?"}}
    CheckPolicy -- "No (Uses Default Rule)" --> BlockRun["Blocked: conclusion = startup_failure (0 jobs)"]
    CheckPolicy -- "Yes" --> LayerEval["Evaluate All Layered Policies (Org + Repo)"]
    LayerEval -- "All policies allow event + workflow_path" --> ExecJob["Dispatch Runner with Base Repo Token & Secrets"]
    LayerEval -- "Any policy omits event or path" --> BlockRun

Observed Failure Behavior (startup_failure)

When a workflow is blocked by the event policy, it does not fail inside a job step—it is rejected at dispatch time. During the November 16, 2026 brownout, open-source repositories such as nathanramoscfa/roadmodel#1558 and SigmaHQ/sigma#6639 saw runs end in startup_failure with the annotation:

Workflows are being blocked due to a scheduled brownout of the default pull_request_target protection for affected public repositories.

In DevToolHub's November 30 / December 2, 2026 API reproduction, a permanently blocked run produced startup_failure, zero jobs, and the browser annotation Event 'pull_request_target' is not allowed to trigger Actions workflows. Workflow file: '.github/workflows/label.yml'. Notably, DevToolHub observed two diagnostic caveats: the gh run view CLI command printed only the generic message "This run likely failed because of a workflow file issue", and the check-runs annotations API returned empty—meaning maintainers must inspect the workflow run page in the GitHub web UI to see the policy error.

Scoping an Exception via workflow_path and REST API

If a public repository genuinely requires pull_request_target for a narrow, non-code-executing workflow (such as labeling PRs), GitHub recommends targeting that specific file via workflow_path rather than enabling pull_request_target repository-wide. Below is a minimal, safe workflow pattern paired with the REST API policy-scoping workflow:

# .github/workflows/pr-labeler.yml
# Safe pattern: never checks out PR head code; minimal permissions
name: PR Labeler
on:
  pull_request_target:
    types: [opened, labeled]

permissions:
  pull-requests: write
  contents: read

jobs:
  label:
    runs-on: ubuntu-latest
    steps:
      - name: Apply label without checking out fork code
        uses: actions/labeler@v5

When creating or updating an Actions event policy via the GitHub Actions Policies REST API (tested by DevToolHub with gh 2.106.0 against API version 2026-03-10 using a fine-grained token with repository Administration: write permission), administrators must use PUT (not PATCH) when updating an existing policy, scope workflow_path to the exact file, and list every event trigger that file uses (such as workflow_dispatch or push if present).


Reliability, Cost & Performance Analysis

Shifting pull_request_target from "allowed by default" to "permission-based" changes both CI/CD reliability and security posture, but introduces sharp operational edges that engineering teams need to account for.

1. The Allowlist & Policy-Stacking Traps

According to GitHub's Workflow Execution Protections documentation and DevToolHub's December 2, 2026 verification, Actions event policies behave as cumulative allowlists:

  • Policies Stack Instead of Overriding: Organization and enterprise policies add to repository policies. A repository-level policy cannot loosen a restriction imposed by an organization or enterprise policy; every applicable policy must permit the event.
  • Unscoped Allowlists Break Standard pull_request Tests: In DevToolHub's test, creating a repository policy that allowed only pull_request_target across all workflows immediately caused standard pull_request test workflows to fail with startup_failure. Because an event policy is an allowlist, omitting pull_request or push from an unscoped policy blocks those events too.
  • Per-File Event Omission: Even when scoped with workflow_path, if a targeted workflow file also listens on workflow_dispatch or push, omitting those events from the policy's allowed event list will cause manual or push triggers on that same file to fail.

2. Required Status Checks & Merge Deadlocks

If a pull_request_target workflow is configured as a required status check in branch protection or repository rulesets on main, a startup_failure blocks every pull request—both external fork contributions and automated dependency-refresh PRs—from merging. This exact deadlock was documented during the November 16 brownout in nathanramoscfa/roadmodel#1558, while WordPress Core Trac ticket #66139 cataloged eight affected pull_request_target workflows (including trac-ticket-check, backport automation, and welcome comments) that would silently halt without an explicit event policy.

3. Documented Incidents & Complementary Hardening Layers

GitHub's December 2 policy change does not operate in isolation; it caps a series of 2026 CI/CD supply-chain mitigations driven by real-world exploits:

Security Control / Incident Date / Timeline Operational Mechanism & Remaining Gaps Source
Default pull_request_target Block Enforced Dec 2, 2026 (brownouts Nov 9 & 16, 16:00–18:00 UTC) Blocks pull_request_target on public Free/Team/GHEC repos lacking an explicit policy; does not cover issue_comment or repository_dispatch. GitHub Changelog (Nov 2, 2026)
Read-Only Cache for Privileged Triggers June & September 2026 pull_request_target, issue_comment, and workflow_run can restore default-branch caches but cannot write them unless cache-mode is set to write/write-only. RunsOn Analysis
actions/checkout Ref Protection 2026 (v4/v5.1.0/v6.1.0+) Refuses fork PR checkout under pull_request_target unless allow-unsafe-pr-checkout: true is set; older exact SHA pins bypass the check, as do raw git or gh CLI fetches. DevelopersIO (Oct 30, 2026)
Real-World Trigger Exploits Dec 2024 – Apr 2026 Cited incidents include Ultralytics (Dec 2024), LiteLLM and Telnyx (Mar 2026), and elementary-data (Apr 2026, crafted PR comment piped to shell). daily.dev Summary (Nov 25, 2026)

4. Plan & Cost Considerations

Organizations on GitHub Team or Enterprise Cloud can deploy a single org-wide event policy—following the model adopted by the Python Software Foundation across its psf, python, and pypi organizations—and gain access to evaluate mode and Rule Insights (note: evaluate mode in the REST API is documented for GitHub Enterprise). Maintainers on GitHub Free must audit and configure event policies repository by repository, with no automated org-wide policy inheritance.


Practical Implementation & Trade-Offs

To eliminate December 2 CI/CD breakages without re-exposing repository secrets, teams should follow a three-step audit and migration framework.

Step 1: Locate Every Affected Workflow

Run a recursive search across an up-to-date checkout of your default branch in every public repository:

grep -rln "pull_request_target" .github/workflows

Inspect each matched file to confirm pull_request_target sits under the on: key (not inside a comment) and check whether any branch protection ruleset lists that workflow's job name as a required status check.

Step 2: Apply the Three-Way Migration Decision Matrix

Workflow Behavior Recommended Action Token & Secret Exposure Trade-Off
Builds, lints, or runs tests on PR code Switch trigger from pull_request_target to pull_request. Read-only GITHUB_TOKEN; no repository secrets on fork PRs. Cannot post authenticated comments or write labels directly from the same job.
Labels, welcomes, or triages without checking out PR code Keep pull_request_target, lock permissions: to minimum, and allow via a workflow_path-scoped event policy. Base repo GITHUB_TOKEN scoped only to pull-requests: write / issues: write. Requires maintaining an explicit Actions event policy per workflow file.
Needs both untrusted PR build AND privileged comment/deploy Split into two workflows: build/test under pull_request and upload results as an artifact; consume artifact as untrusted data in a workflow_run workflow. Secrets isolated strictly to the second workflow_run stage. Higher YAML complexity; must sanitize artifact contents before rendering or passing to shells.

Step 3: Verify Policy Layering & Runner Side Effects

Before closing out your audit:

  1. Check Existing Org/Repo Policies First: List existing policies via Settings → Actions → Policies or the REST API so your new workflow_path rule does not inadvertently collide with an org-wide allowlist.
  2. Avoid allow-unsafe-pr-checkout: true Shortcuts: Even if you enable pull_request_target via an event policy, never bypass actions/checkout protections unless you have verified that checked-out files are never executed, sourced, or passed to build tools.
  3. Self-Hosted Runner Hygiene: Remember that GitHub's default pull_request_target block does not protect against issue_comment triggers, repository_dispatch, or persistent artifacts left behind on non-ephemeral self-hosted runners.

Frequently Asked Questions

Which repositories are affected by GitHub's December 2, 2026 pull_request_target block?

The default policy applies to public repositories on GitHub Free, GitHub Team, and GitHub Enterprise Cloud that do not already have an applicable Actions event policy. Private repositories, internal repositories, and GitHub Enterprise Server (GHES) are not affected by the default rule.

Why did my pull_request test workflows stop running after I created an event policy for pull_request_target?

GitHub Actions event policies act as allowlists, not blocklists. If you create a repository-wide event policy that lists only pull_request_target, GitHub blocks pull_request, push, and other unlisted triggers. Always scope exceptions to the exact file using workflow_path and include every event trigger that file requires.

How can I tell if a workflow failed because of the new event policy?

A blocked workflow fails immediately with conclusion startup_failure and zero executed jobs. Because gh run view currently displays a generic "This run likely failed because of a workflow file issue" message and the check-runs annotations API may return empty, open the failed run in the GitHub web UI to read the policy error annotation.

Can a repository admin override an organization-level Actions event policy?

No. GitHub Actions event policies stack cumulatively. A workflow run must satisfy every applicable enterprise, organization, and repository policy, meaning a repository-level policy cannot loosen a restriction enforced at the organization or enterprise level.

What is the safest way to post test results or preview links back to a fork pull request?

Split the pipeline into two workflows: run the untrusted build and test suite under pull_request (which has no secrets and a read-only token) and upload the test summary or metadata as a workflow artifact. Then trigger a separate workflow_run workflow with pull-requests: write permission to read that artifact strictly as data and post the PR comment.


Sources

  1. GitHub Changelog (Primary, November 2, 2026): pull_request_target blocked by default December 2 — https://github.blog/changelog/2026-11-02-pull_request_target-blocked-by-default-december-2/
  2. GitHub Changelog (Primary, September 17, 2026 / Updated October 21, 2026): Workflow execution protections in GitHub Actions generally available — https://github.blog/changelog/2026-09-17-workflow-execution-protections-in-github-actions-generally-available/
  3. GitHub Docs (Primary, 2026): Securely using pull_request_target & REST API endpoints for GitHub Actions policies — https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target and https://docs.github.com/en/rest/actions/policies
  4. DevToolHub (Secondary, December 2, 2026): pull_request_target Blocked on Dec 2: Fix Your Workflows — https://devtoolhub.com/github-actions-pull-request-target-blocked/
  5. WordPress Core Trac (Primary OSS Impact, November 10, 2026): Ticket #66139: Prepare for GitHub's default block on pull_request_target — https://core.trac.wordpress.org/ticket/66139
  6. RunsOn (Secondary, 2026): pull_request vs pull_request_target in GitHub Actions — https://runs-on.com/github-actions/pull-request-vs-pull-request-target/
  7. daily.dev (Secondary, November 25, 2026): GitHub will block pull_request_target workflows by default in public repos on December 2, 2026 — https://daily.dev/posts/github-will-block-pull-request-target-workflows-by-default-in-public-repos-on-december-2-2026-fpknuscxi

More on Automation

Automation

Docker VMM GA in Docker Desktop 4.101: Bind-Mount Benchmarks, Memory Reclamation, and WSL 2 Trade-Offs

On December 1, 2026, Docker promoted its first-party virtualization layer, Docker VMM, to general availability in Docker Desktop 4.101 across macOS, Windows (x86), and Linux. Built to power both local containers and Docker Sandboxes for AI agents, Docker VMM delivers up to 19.5x faster monorepo searches on Windows, 2.3x faster small-file installs on Mac, and automatic host memory reclamation.

8 min read

Automation

Prefect Acquires ThruWire: Directed Agentic Graphs, Verification Checkpoints, and Foreman Limits

Prefect announced its acquisition of ThruWire on November 30, 2026, bringing co-founders Seth and Josh Rosen into Prefect to unify Dagster, FastMCP, and Prefect around directed agentic graphs. While financial terms and integration dates remain undisclosed, ThruWire's open-source Foreman supervisor stays MIT-licensed—offering a testable, single-worker coding agent gate with clear operational limits.

8 min read

Tell us what is not working

A thirty-minute call, no deck and no obligation. You will leave with a straight answer about whether this is worth building - including if that answer is no.

Start a project

Direct line

hello@codebumble.net
Dhaka, Bangladesh  :   local timeCalls in English or Bangla