GitHub Actions Dec 2: pull_request_target and fork CI
On December 2 GitHub blocks pull_request_target by default in public repos. Check Policy Insights and split fork tests from release jobs.
This article is for informational and educational purposes only. It is not a security audit, a penetration test or a promise that your systems are free of vulnerabilities or defects. Versions, fixes and dates are current as of the date shown above. Check your vendor's and your distribution's advisories before you act. Any change you apply is your responsibility. No exploit code is provided. Only test systems you own or are authorised to test.
Starting December 2, 2026, GitHub blocks pull_request_target by default in public repositories unless an applicable Actions event policy explicitly allows it. Private and internal repositories are unaffected, and GitHub Enterprise Server does not receive this change. Audit affected workflows in Policy Insights, move fork tests to pull_request without secrets, and keep release jobs on protected branches after merge.

An outside contributor's pull request should not need deployment credentials to prove that it builds. Yet tests, labeling, and notifications often end up in a single workflow. When its trigger is no longer allowed, the result looks like broken CI. The first thing to investigate is that bundle of responsibilities, not the application.
GitHub announced workflow execution protections on September 17, 2026, with automatic enforcement initially scheduled for November 2; on October 21 it postponed that date to December 2, 2026 (editor's note on the September 17 changelog) and confirmed it in the November 2 changelog. The default block applies to public repositories on GitHub Free, GitHub Team, and GitHub Enterprise Cloud unless an applicable Actions event policy explicitly allows pull_request_target, and it does not replace an applicable event policy you have already configured. Private and internal repositories are not affected, and the change does not apply to GitHub Enterprise Server. It does not end ordinary testing of fork pull requests. What matters is which of your workflows depend on the event and what authority each one actually requires.
Before editing YAML, identify what would stop running
If you administer a repository, open Settings → Actions → Policies. Check the applicable rules, including inherited organization and enterprise policies where you manage those scopes. In Policy Insights, look for runs the rule would have blocked in evaluate mode. Evaluate mode lets workflows continue with warnings so you can observe the impact before enforcement begins. GitHub ran temporary enforcement brownout windows on November 9 and November 16, 2026, from 16:00 to 18:00 UTC (17:00–19:00 Europe/Madrid); a run stopped during one of those windows is not evidence that your application regressed.
Cross-check Insights against the active files in .github/workflows/ and the checks required by branch protection or rulesets. Record each workflow's name and path, its trigger, effective job permissions, and the work it performs. Note whether it handles code from a fork, changes repository state, or produces something a deployment later consumes. A workflow may be absent from Insights simply because it did not run during the period you inspected. An empty screen is not an inventory.
A path filter can skip the entire workflow and leave a required check pending, blocking merge. Verify the check name reported on the PR, not just the YAML filename (see GitHub's troubleshooting documentation for skipped required status checks).
When a check turns red, capture the run link and read the annotation and steps first:
- The annotation disallows the event, and no test steps ran — What it means: The workflow was blocked by policy. Where to look: Check the effective policy and the trigger.
- The job started and a test step returned an error — What it means: A test actually ran and failed. Where to look: Read the step output and reproduce it in the appropriate environment.
- Logs or account billing indicate a payment issue or spending limit — What it means: Account-level block, not a CI test failure. Where to look: Review billing and budgets with the account owner.
A run with no steps does not identify its own cause. Read the annotation. Re-running without changing the trigger, policy, or account state rarely tells you more. Disabling a security control will not fix a billing issue.
Keep untrusted code, write permissions, and secrets in separate workflows
Three tasks often end up in the same workflow even though they need different permission levels. The first is running pull request code to build and test it: use the pull_request event, grant only read access with permissions, and do not pass secrets; a job that runs make test from a fork must not be able to read the publishing key. The second is triaging the pull request (adding a label, a comment, or a status): that work may need write permissions, but it must not check out or run the contributor's code. The third is publishing or deploying: that is where secrets belong, and the workflow should start only from a commit already integrated into a protected branch. Put them in separate workflows so untrusted code cannot inherit the authority of the other two.
Verify a contribution. Use pull_request to build and test code from a fork. Grant only necessary read permissions and do not pass secrets. Run the job on isolated, ephemeral infrastructure without access to internal networks or production. If a test needs a private service, give it a suitable test environment or run that check after integration rather than lending privileged credentials to the pull request. Treat build configuration, dependencies, and test scripts as part of the contribution, not as trusted infrastructure.
Triage the pull request. If your team needs to add a label or post a status, isolate that metadata operation. First check whether a native rule or a maintainer can do it. If pull_request_target is still necessary, GitHub's security guidance recommends keeping untrusted code out of that context. Keep the logic on the base branch, do not run artifacts from the fork (including from downstream workflow_run jobs), and grant only the specific write permission needed. Validate metadata as data: choose a label from a fixed set rather than interpreting contributor-supplied text as an instruction. Scope any exception to the workflow file that genuinely needs it and assign an owner.
Publish or deploy. Keep release authority on a separate path that starts from a revision already integrated into a protected branch. Build the release artifact from that trusted revision, not a fork. Check the exact commit and artifact identifiers and apply the appropriate environment approval. A previous test result can inform a release decision; neither that result nor an attachment should grant release authority. Scoping a policy exception to a file controls what may start. It does not prove the contents of that file are safe.
A worked example you can adapt without touching production
Before: validate.yml started with on: pull_request_target, so the same workflow owned PR validation and triage. Do not reproduce that coupling by checking out the fork in the privileged context.
After: save this as .github/workflows/pr-checks.yml. Use your repository's make test target or replace it with your test command; the job needs no persistent credentials, write permission, or secrets. Keep labeling manual or put it in a separate metadata workflow that never runs PR code. Release still runs separately on the integrated commit.
name: PR checks
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
pr-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- run: make testWhat was verified: the YAML passed actionlint 1.7.12 locally. This validates the file syntax and workflow schema, not a GitHub run, its effective policy, or required checks. If your organization or enterprise policy requires pinning actions to a full commit SHA, replace @v7 with the pinned commit SHA (# v7).
Acceptance test in an authorized test repository: open a harmless PR from a fork. If the repository requires approval before the workflow starts, record that step. Confirm that pr-tests runs, that branch protection requires that exact check, and that release does not start. Then intentionally break a harmless test so the check turns red and merge is blocked. Revert that change and confirm recovery. Keep the links to both runs and confirm neither run published. If anything does not match, do not remove the old check or widen the policy yet.
Decisions a release owner can sign off on
- Only verifies PR code — Decision: Move to unprivileged PR test context. Minimum evidence: Test PR plus matching required check.
- Writes a label and never runs contributed code — Decision: Retire if optional; keep narrow exception if needed. Minimum evidence: File path, minimum permissions, owner, review date.
- Can publish or deploy — Decision: Move to post-merge protected context. Minimum evidence: Exact commit and artifact, environment gates, approval.
- No owner or its consumers are unknown — Decision: Do not approve an exception until inventoried. Minimum evidence: Named owner and reviewed dependencies.
The goal on December 2 is not for every old workflow to keep firing. It is that an outside contribution can prove it works without acquiring release authority. If you can draw that boundary and point to the check that enforces it, you have a defensible release decision, not just another green check.
Frequently asked questions
- Does the December 2, 2026 default block affect private repositories or GitHub Enterprise Server? No. It applies only to public repositories on GitHub Free, GitHub Team, and GitHub Enterprise Cloud unless an applicable Actions event policy explicitly allows pull_request_target. Private and internal repositories are not affected, and GitHub Enterprise Server does not receive this change.
- Will normal pull request tests from forks stop working on December 2? No. Workflows triggered by pull_request continue running normally with a read-only GITHUB_TOKEN and without repository secrets.
- How can I tell which workflows would be blocked before December 2? Open Settings → Actions → Policies → Policy Insights to inspect runs that evaluate mode flagged, as well as any runs blocked during the November 9 and November 16 brownout windows (16:00–18:00 UTC).
- Is pull_request_target safe if a workflow only adds a label? It can be isolated if policy restricts the exception to that file, the workflow never checks out or runs fork code or artifacts, permissions stay minimal, and PR text is validated as data rather than instructions.
Related reading
- MCP and AI tool security: what to check before connecting your agents
- AI agents in production need permissions, not vibes
Sources
- GitHub Changelog: pull_request_target blocked by default December 2 (November 2, 2026)
- GitHub Changelog: Workflow execution protections in GitHub Actions generally available (September 17, 2026)
- GitHub Docs: Governing execution of GitHub Actions workflows (Evaluating policies)
- GitHub Docs: Troubleshooting required status checks (Handling skipped but required checks)
- GitHub Docs: Securely using pull_request_target
Let an agent prepare this. Your team approves it.
An agent can track advisories, check them against your versions and prepare the update for your team to review and apply. We design that workflow: scoped permissions, human approval before any change, and a log of every step. We do not audit or patch your systems.


