Today, a GitHub Actions workflow can fail before a single step runs, even though nobody changed its YAML. GitHub has started enforcing a new default that blocks pull_request_target in eligible public repositories. If you maintain labels, previews, bot comments, coverage reports, or release checks around forked pull requests, this is a production change worth checking now.
The fast answer is simple: public repositories that relied on GitHub’s default policy can have pull_request_target runs blocked unless an applicable Actions event policy explicitly allows that event. Private and internal repositories are outside this default change. Repositories that already have an applicable policy are not silently replaced by the new default.
Why GitHub is blocking this trigger
pull_request_target intentionally runs in the context of the base repository. That gives a workflow the base repository’s GITHUB_TOKEN and, where configured, access to secrets. It is useful for trusted automation on pull requests from forks, but it becomes dangerous if the job checks out and executes code supplied by that fork. GitHub calls this family of mistakes “pwn requests.”
By contrast, pull_request is built for lower trust. For a forked pull request, GitHub uses a read-only token, withholds other secrets, and applies fork approval rules. That doesn’t make every workflow harmless, but it gives you a much safer starting point when a job doesn’t truly need privileged access.
What actually changes on 2 December 2026?
GitHub moves its default pull_request_target policy from evaluate mode to enforcement for affected public repositories. A workflow run blocked by the policy fails with an error annotation and does not execute. GitHub Free, Team, and Enterprise Cloud public repositories are in scope. GitHub Enterprise Server, private repositories, and internal repositories are not covered by this default policy.
Find the workflows most likely to break
Start with a repository search for pull_request_target under .github/workflows. Then check Actions policy insights, which GitHub made available while the rule was in evaluate mode. A workflow that labels a pull request without checking out its code is very different from one that runs npm install, a build command, or a project script after checking out the fork’s head.
- Move the job to
pull_requestif it does not need secrets or write permissions. - Split the workflow if one small, trusted step needs privilege but the build needs to inspect untrusted code.
- Create an explicit Actions event policy only when
pull_request_targetremains necessary, and limit it to the exact workflow file where possible. - Do not treat an explicit allow rule as a free pass. Avoid checking out, building, or running fork code with secrets available.
The risky pattern is usually smaller than teams expect
The dangerous line is often not the trigger itself. It is the moment a privileged job consumes fork-controlled content. A workflow can be exposed by an explicit checkout of a pull request head, but also by dependency installation, a build script, a Makefile, a test command, or configuration that executes code as part of setup. GitHub’s security guidance is especially firm here: if untrusted pull request code is present, treat it as data unless it runs in a separately unprivileged environment.
| Workflow need | Safer direction |
|---|---|
| Run tests on fork code | Use pull_request with its default fork protections. |
| Label or comment without reading fork code | pull_request_target may be justified, but keep the job narrowly scoped. |
| Publish an artifact from fork code using secrets | Redesign into separate unprivileged and privileged stages. |
| Need an exception | Use an explicit event policy and target the individual workflow file. |
This is a policy change, not a YAML migration
That distinction matters. You may see a failed run even when the workflow file has not changed, because policy enforcement happens around workflow execution. GitHub’s Actions policy documentation explains that policies can sit at repository, organization, and enterprise levels. The effective rule can therefore come from outside the repository where the failed workflow lives.
For teams that automate code review, this is a good moment to review the trust boundary rather than merely restore the old behavior. The same principle shows up in our explanation of why a Claude skill can run a shell command before a hook sees it: the important question is what executes before your control point has a chance to intervene.
Security maintenance also has a long tail. An expired license can leave real settings active, as we covered in this WP Rocket configuration check. In both cases, the safest audit asks what still has authority, not just what the dashboard says is enabled.
A practical response checklist
- Search all public repositories for
pull_request_target. - Review Actions policy insights and any workflows that logged warnings during evaluate mode.
- Classify each workflow by whether it reads or executes pull request code, and whether it needs secrets.
- Prefer
pull_requestfor untrusted code paths. - Document every explicit exception with the exact secret and action it requires.
Does this affect private repositories?
No. GitHub’s default policy for this rollout applies to public repositories. Private and internal repositories are not affected by the default rule, though an organization or enterprise can still set its own Actions policies.
Should every pull request workflow switch to pull_request?
Not automatically. Use pull_request when the workflow does not need elevated access. Some trusted automation still needs pull_request_target, but it should avoid executing fork-controlled code and should be covered by a deliberate, narrow policy.
Where can I configure the exception?
Repository administrators, organization owners, and enterprise owners can manage Actions workflow execution protections. GitHub’s workflow execution guidance covers the available policy levels and workflow file targeting.
GitHub’s default is drawing a useful line in the sand: public fork automation should be safe by design, not safe only when every future contributor remembers a subtle rule. Have you found a pull_request_target workflow that genuinely cannot be split, or did the audit reveal an old convenience workflow with more authority than it deserved? Share the pattern in the comments so other maintainers can spot the same trap.


