Automation

GitHub Actions Blocks pull_request_target by Default on Dec 2: Migration & CI/CD Security Guide

Starting December 2, 2026, GitHub Actions permanently blocks pull_request_target workflows by default in public repositories unless an explicit Actions event policy allows them. Here is how the new workflow execution protection works, why CI/CD secret boundaries are under pressure, and how to migrate without breaking releases.

By 0xScorPionSon

8 min read

GitHub Actions Blocks pull_request_target by Default on Dec 2: Migration & CI/CD Security Guide

GitHub Actions Policy Shift blocking forked pull_request_target events on December 2 in public repositories

Executive Summary

  • Permanent Enforcement Begins December 2, 2026: Following evaluate-mode rollouts and two scheduled brownouts on November 9 and November 16, 2026, GitHub Actions will block pull_request_target workflow triggers by default in public repositories unless an applicable Actions event policy explicitly permits them.
  • Who Is Affected: The default block applies to public repositories on GitHub Free, GitHub Team, and GitHub Enterprise Cloud that do not already have a custom Actions event policy configured. Private repositories, internal repositories, and GitHub Enterprise Server (GHES) are not affected.
  • Why It Matters Now: pull_request_target executes in the context of the base repository with access to repository secrets and a privileged GITHUB_TOKEN, making it a frequent vector for "pwn request" supply-chain compromises—a risk underscored by ongoing CI/CD secret-harvesting campaigns such as wfx-loot (StepSecurity, November 30, 2026).
  • Operational Takeaway: Teams maintaining open-source repos, public plugin libraries, or docs sites should audit Policy Insights immediately, migrate non-privileged checks to pull_request, or scope explicit workflow-file allowlists rather than granting broad event exceptions.

What Changed & Core Mechanism

Historically, GitHub Actions allowed any public repository workflow to listen on pull_request_target without administrative opt-in. Because pull_request_target runs against the base repository's default branch and workflow file rather than the fork's head commit, it receives read/write GITHUB_TOKEN permissions and access to repository secrets even when triggered by an external contributor's fork.

If a workflow subsequently checks out the fork's code (${{ github.event.pull_request.head.sha }} or refs/pull/${{ github.event.pull_request.number }}/merge) and executes build, test, or package-manager commands (npm install, make test, or custom scripts), attacker-controlled code from the fork runs inside a privileged environment.

To curb these "pwn request" vulnerabilities by default, GitHub Docs and the GitHub Changelog introduced workflow execution protections with a default event policy:

flowchart TD
    A[External Fork Opens Pull Request] --> B{Workflow Trigger Type}
    B -->|pull_request| C[Runs in Fork Context<br/>No Secrets, Read-Only Token]
    B -->|pull_request_target| D{Public Repo Event Policy Check}
    D -->|Default Policy Active<br/>Dec 2, 2026| E[Workflow Run Blocked<br/>Failed Run + Error Annotation]
    D -->|Explicitly Allowed in<br/>Actions Event Policy| F{actions/checkout Protection}
    F -->|Default Checkout| G[Checks Out Base Repo Safely]
    F -->|allow-unsafe-pr-checkout: true| H[Checks Out Fork Head<br/>Must Never Execute Untrusted Code]

How the Rollout & Brownout Schedule Worked

GitHub originally targeted November 2, 2026 for enforcement before shifting permanent enforcement to December 2, 2026 and running two temporary brownout windows so maintainers could surface breaking workflows in advance:

Milestone / Window Date & Time (UTC) Behavior on Public Repositories Without Custom Policy
Evaluate Mode Nov 2 – Dec 1, 2026 (outside brownouts) Workflows continue running with warnings logged in Policy Insights
Brownout Window 1 Nov 9, 2026 (16:00–18:00 UTC) pull_request_target runs fail with an error annotation
Brownout Window 2 Nov 16, 2026 (16:00–18:00 UTC) pull_request_target runs fail with an error annotation
Permanent Enforcement Dec 2, 2026 onward All pull_request_target runs blocked unless explicitly allowed by policy

Safe Workflow Configuration Patterns

For the vast majority of CI/CD checks (linting, unit tests, static analysis) that do not need write permissions or repository secrets, switching from pull_request_target to pull_request eliminates the privilege boundary entirely:

# Safe pattern: run untrusted fork tests under pull_request (no secrets)
name: Fork PR Checks
on:
  pull_request:
    branches: [ main ]

permissions:
  contents: read

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Run unit tests in unprivileged fork context
        run: npm ci && npm test

When a privileged action must interact with a fork PR (such as posting a coverage summary or applying a label based on test results), GitHub recommends splitting untrusted execution from privileged reporting into two workflows:

  1. Stage 1 (pull_request): Run tests in the unprivileged fork context and upload a plain data artifact (for example, a JSON test-summary file or PR number).
  2. Stage 2 (workflow_run): Trigger after Stage 1 completes, download the artifact in the privileged base context, and parse it strictly as data—never execute scripts, binaries, or build configs from the artifact:
# Stage 2: privileged workflow_run reads artifact strictly as data
name: Post PR Summary
on:
  workflow_run:
    workflows: ["Fork PR Checks"]
    types: [completed]

permissions:
  pull-requests: write

jobs:
  comment:
    if: ${{ github.event.workflow_run.event == 'pull_request' }}
    runs-on: ubuntu-latest
    steps:
      - name: Download data-only artifact
        uses: actions/github-script@v7
        with:
          script: |
            // Read PR metadata and post status without checking out or executing fork code
            console.log("Verified workflow_run:", context.payload.workflow_run.id);

If a workflow genuinely requires pull_request_target and must inspect fork metadata or files without executing them, GitHub's updated actions/checkout protection blocks checking out fork head refs unless you explicitly set allow-unsafe-pr-checkout: true—an intentionally noisy flag designed to stand out during code review and CodeQL static analysis.


Reliability, Cost & Security Analysis

Enforcing a default block on pull_request_target carries zero additional compute or licensing cost, but failing to audit public repositories before December 2, 2026 creates an immediate CI/CD reliability risk: automated PR labelers, CLA bots, preview deployers, and release helpers on public plugin or documentation repos will silently fail with error annotations, stalling contributor merges.

At the same time, recent threat telemetry shows why CI/CD secret isolation cannot rely on obscurity. On November 30, 2026, StepSecurity published an update on the wfx-loot GitHub Actions secret-stealer campaign (active November 10–12, with reporting through November 24):

  • Scale of CI/CD Targeting: Across varying industry analyses, attackers used compromised developer and bot tokens to send probe pull requests into 61,000 to 63,000+ repositories (including 10,431 into repositories the compromised accounts did not own), with the ~1,500-line shell stealer executing in at least 1,806 repositories.
  • What CI/CD Attackers Harvest: Beyond GitHub GITHUB_TOKEN and OIDC tokens, automated CI stealers dump runner process memory and harvest AWS, Azure, GCP, Docker, Kubernetes, npm, PyPI, SSH, Vault, and AI provider API keys—and establish cloud persistence (wfx-<pid> AWS IAM sessions, wfx-ci-* Azure federated credentials, and GCP service-account impersonation) before deleting their own workflow run logs.
  • Detection Signals in Actions: StepSecurity notes that the most reliable indicator of CI/CD stealer execution is a missing run number gap in the GitHub Actions tab immediately after a suspicious commit, alongside reviewing the audit log's deleted-runs view and CloudTrail for wfx- session names followed by CreateAccessKey or UpdateAssumeRolePolicy.
  • Additional Protections in pull_request_target: Alongside the default event block, GitHub Docs notes that pull_request_target workflows are restricted to read-only dependency caches by default (preventing cache poisoning from forks unless a job explicitly opts into a write-capable cache-mode), and warns that issue_comment and workflow_run triggers face identical "pwn request" risks if they execute downloaded artifacts from untrusted forks.

Practical Implementation & Trade-Offs

As Datura Digital highlights, even organizations whose primary products live in private repositories often maintain public SDKs, documentation sites, or WordPress/CMS plugins where a failed release helper can delay customer delivery. Use this decision framework before December 2:

Scenario Recommended Pattern Key Trade-Off
Standard CI (tests, lint, build) Switch trigger to pull_request No access to repo secrets; safest default for external forks
PR labeling / commenting only Keep pull_request_target + explicit workflow-file policy; never check out fork code Requires creating an Actions event policy; zero code execution risk
Needs fork build + secret-backed comment/deploy Split into pull_request (build/test, upload artifact) + workflow_run (treat artifact strictly as untrusted data) Slightly more YAML complexity; preserves strict privilege boundary
Self-hosted runners on public repos Do not use persistent self-hosted runners for fork PRs Ephemeral, isolated compute is mandatory to prevent cross-run persistence

Step-by-Step Pre-Enforcement Checklist

  1. Audit Policy Insights: In your organization or repository Insights, review which workflows triggered pull_request_target warnings during evaluate mode or failed during the November 9 and November 16 brownouts.
  2. Assign Workflow Owners: Document why each remaining pull_request_target workflow exists and verify whether any reusable workflow (uses: org/repo/.github/workflows/...) or helper script pulls in fork inputs.
  3. Scope Exceptions Narrowly: If you must allow pull_request_target, use workflow file targeting in your Actions event policy to allowlist only specific reviewed .yml files rather than enabling the trigger across the entire repository or organization.
  4. Enable CodeQL for GitHub Actions: Turn on CodeQL default setup to catch command injection (${{ github.event.pull_request.title }} or branch-name interpolation) and unsafe checkouts automatically.
  5. Check Concurrent December Runner Changes: While auditing workflows for December 2, verify that your pipelines do not depend on ARM32 Linux or Windows execution on GitHub-hosted runners, which retires on December 8, 2026 following Node 20 end of support (GitHub Changelog). Note also that standard 2-core and 4-core Linux runners now schedule across multi-cloud AWS and Azure compute pools to reduce queue latency (GitHub Changelog).

Frequently Asked Questions

Does the December 2, 2026 GitHub Actions block affect private repositories?

No. GitHub explicitly states that the default pull_request_target block applies only to public repositories on GitHub Free, GitHub Team, and GitHub Enterprise Cloud. Private repositories, internal repositories, and GitHub Enterprise Server (GHES) are unaffected.

What happens if my public repository already has an Actions event policy?

The default block does not overwrite an existing applicable Actions event policy that you have already configured. It only applies to public repositories without an applicable event policy.

How can I keep a legitimate pull_request_target workflow running after December 2?

Create or update an applicable Actions event policy that explicitly allows pull_request_target, and use workflow file targeting to restrict the exception to specific audited workflow files. Ensure those workflows never execute untrusted fork code.

Why did actions/checkout add allow-unsafe-pr-checkout: true?

To prevent accidental "pwn requests," actions/checkout blocks checking out fork pull request head refs inside pull_request_target workflows by default. Setting allow-unsafe-pr-checkout: true opts out—and is intentionally named so security reviewers and static analysis tools flag it immediately.

Are workflow_run and issue_comment workflows also vulnerable to pwn requests?

Yes. Any workflow triggered with access to secrets can suffer a pwn request if it checks out fork code or executes artifacts uploaded by an untrusted pull_request run. Always treat downloaded artifacts as untrusted data.


Sources

  1. The GitHub Blog (Changelog) — "pull_request_target blocked by default December 2" (November 2, 2026): https://github.blog/changelog/2026-11-02-pull_request_target-blocked-by-default-december-2/
  2. GitHub Docs — "Securely using pull_request_target" (accessed December 1, 2026): https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target
  3. StepSecurity (Owais Shaikh) — "wfx-loot Campaign Update: 30 November 2026" (November 30, 2026): https://www.stepsecurity.io/blog/wfx-loot-campaign-update-30-november-2026
  4. Datura Digital — "GitHub Actions Changes: Check Your Pipeline Before Monday" (November 7, 2026): https://daturadigital.gr/blog/github-actions-changes-november-2026/
  5. The GitHub Blog (Changelog) — "Actions for ARM32 Linux & Windows retirement" (November 12, 2026): https://github.blog/changelog/2026-11-12-actions-for-arm32-linux-windows-retirement/
  6. The GitHub Blog (Changelog) — "GitHub Actions adds multi-cloud compute to improve reliability" (October 28, 2026; updated November 2, 2026): https://github.blog/changelog/2026-10-28-github-actions-adds-multi-cloud-compute-to-improve-reliability/

More on Automation

Automation

Windmill v1.889.1: SDK Flow Mocking, Timeouts, and Origin Hardening

Windmill v1.889.1 (released November 28, 2026) caps a month of production-hardening releases with origin-enforced browser session cookies, native TOTP two-factor authentication, SDK-driven flow testing (wmill.testFlow / test_flow) with subflow step overrides, flow-level execution timeouts, and live HashiCorp Vault secret references.

10 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