A stopped automation job can be doing exactly what its owner now needs. GitHub's December 2 enforcement notice says affected public repositories will block workflows triggered by pull_request_target unless an applicable event policy explicitly permits them. For maintainers facing a failed run, the immediate temptation is to restore the old behavior. The more useful question is what that behavior allowed an outside contributor to execute, and with whose credentials. Getting the workflow running again and making it safe are separate decisions.
This is the arrival of a previously announced deadline. GitHub's November 2 notice scheduled enforcement for December 2, after an earlier November target. It also scheduled two temporary enforcement windows, on November 9 and November 16 from 16:00 to 18:00 UTC, when blocked attempts would fail without executing. The stated scope covers public repositories on Free, Team and Enterprise Cloud, excluding Enterprise Server. Private and internal repositories are outside this default rule. Existing applicable event policies continue to matter. A team should establish whether its repository is actually subject to the default before treating every failed workflow as the same problem.
The distinction between the two pull-request triggers explains the risk. GitHub documents pull_request from a fork as an untrusted execution context: its token is read-only and other secrets are withheld. pull_request_target instead runs the workflow from the base repository's default branch. Its normal checkout also takes trusted base-branch code. That arrangement supports privileged automation responding to an outsider without automatically executing the outsider's proposed changes. Trouble starts when a workflow deliberately fetches the fork's code and then runs it with the base repository's authority.
Execution is broader than an obvious deployment command. GitHub Security Lab describes build scripts, tests and package installation hooks as ways submitted code can run. A test suite is executable material supplied by the change under review. An installation step can execute hooks before the build begins. Reviewing only the workflow's visible command names therefore misses part of the program. The review has to include what those commands load from the pull request.
There are legitimate reasons to keep privileged pull-request automation. Matplotlib's public maintenance discussion illustrates the distinction. In October, participants discussed four labeling, conflict-checking, welcome and comment workflows. They described these as using repository authority for API operations rather than checking out and executing submitted code, and asked that this assessment be checked before explicit policies were added. A November comment proposed removing the trigger instead. This is evidence of the choices maintainers were working through, not an independent certification that those workflows are safe or confirmation that a proposed fix shipped. It also shows why a blanket instruction to replace every trigger can be inadequate: the operation may genuinely require permission to change repository metadata.
The consequence of getting the boundary wrong is documented beyond GitHub's own examples. TanStack's May incident follow-up says an external pull request ran code that could write to a shared continuous-integration cache. A later legitimate release restored the poisoned cache, allowing malicious code to extract a short-lived publishing credential when it existed in the runner. The project says its publishing setup used OIDC rather than keeping a long-lived npm publishing token on a maintainer's machine. That protection did not make execution inside the authorized release process harmless. This is historical context for the failure mode, not evidence that the December rule was prompted by this single incident.
Tim Anderson's May 18 reporting for The Register corroborated TanStack's removal of pull_request_target and caches from affected automation. It also covered the team's discussion of making outside pull requests invitation-only. That was a proposal, not a completed change in contribution policy. The debate captures an operating cost that a narrow security setting can conceal: maintainers may respond to dangerous automation by making contribution harder. Separating contribution from privileged execution offers a more targeted objective. People should be able to propose a fix without that proposal automatically acquiring the authority needed to publish a release.
GitHub's policy controls provide several dimensions for expressing that separation. Its administration guide describes restrictions that layer across enterprise, organization and repository levels, with targeting down to workflow paths. Actor restrictions determine who can initiate a workflow; event restrictions determine which trigger is allowed. An allowed actor still has to satisfy an applicable event restriction. For a platform team, that means a repository-level exception should be reviewed in the context of the policies above it. A narrowly targeted permission for a metadata workflow is a different decision from restoring the event across every workflow in an organization.
The same guide distinguishes observation from enforcement. Policy insights can show runs an active rule blocked, or runs an evaluating rule would have blocked. That difference matters when diagnosing a migration: a warning collected during evaluation does not establish that a run was prevented. Conversely, changing a policy until a job turns green proves only that the execution rule permits it. The job still needs a review of its inputs and privileges.
Token permissions deserve their own pass. GitHub's authentication documentation warns that an action can access GITHUB_TOKEN through the github.token context even when the workflow does not explicitly hand the token to it. Removing a visible token argument is therefore insufficient evidence that the job has lost access. The permissions key can constrain the whole workflow or individual jobs. A useful review starts with the repository operation each job needs, then checks the granted capability against it. A job whose purpose is posting a result should not gain unrelated authority simply because another job performs a more privileged operation.
Where a build must process untrusted code and a later step must post an authenticated result, GitHub Security Lab describes splitting the work. The unprivileged pull_request workflow builds and stores results; a separate workflow_run stage consumes those results with the permission it needs. The transfer does not cleanse the artifact. A coverage result can be handled as data, while a binary supplied by the untrusted build must not be executed in the privileged stage. Otherwise the split relocates the original problem. The artifact consumer is part of the security boundary and deserves the same scrutiny as the build.
Even an automation that never checks out submitted code can mishandle input. GitHub Security Lab's separate analysis of command injection identifies issue titles, comment bodies and branch names among the values an outsider can control. Substituting those values directly into an inline shell script can turn event metadata into instructions before the shell runs. Its recommended pattern uses an intermediate environment variable, with appropriate quoting, so the value stays data rather than participating in script generation. For a labeling or triage workflow, this is the counterargument to declaring victory after removing checkout: the remaining text-processing path can still carry authority-sensitive input.
Shared storage is another path between jobs. GitHub's current caching reference gives low-trust triggers operating in the default branch's context, including pull_request_target and workflow_run, read-only access to that branch's caches by default. A trusted push-triggered workflow can keep those caches populated. A blocked save can produce a warning while the job continues, so successful completion does not imply that the cache was updated. The documentation also permits an explicit write-capable cache-mode, warning that it reintroduces poisoning risk. These current controls should not be confused with the configuration described in TanStack's May account. They also deserve attention before a team removes a restriction merely to silence a cache warning.
The machine running the job changes the exposure again. GitHub's secure-use reference warns that self-hosted runners do not carry the same clean, ephemeral-environment guarantees as its hosted runners. Untrusted code can persistently compromise a reused environment, and sharing a runner across repositories can widen the consequences. Runner groups can restrict access, but grouping is not proof that a machine is clean. Even a just-in-time runner registration does not eliminate information left on reused hardware. An event-policy exception therefore needs an infrastructure review when execution takes place on machines with internal network access or other credentials. The permission to start a job says little about what that machine can reach.
There is also a separate checkout safeguard to understand. GitHub announced actions/checkout v7 in June with default rejection of common fork head and merge checkouts in pull_request_target and relevant workflow_run contexts. That control acts at the checkout step; December's event policy decides whether an affected workflow can start. GitHub expressly says the checkout protection does not cover manual git or gh fetches, or every unrelated untrusted repository. Its allow-unsafe-pr-checkout opt-out is deliberately conspicuous. Replacing a refused checkout with a manual fetch can restore precisely the execution path the guard was intended to interrupt. An exception at either layer needs a reason grounded in how the downloaded material will be handled.
The reporting boundary remains important. GitHub's December 2 notice establishes its announced enforcement timing. At the time of this review, the linked security reference still described the default as currently evaluating while also giving December 2 as the enforcement date. This article relies on the dated notice for the policy change, not on an independently measured rollout across repositories. Neither the notice nor the project discussions supply a count of attacks prevented. The practical evidence for an individual team is its applicable policy, the recorded run outcome, and a review of what every permitted privileged job can actually execute.
LaunchPad positionAuthorize a specific operation only after tracing the untrusted inputs and privileges it can combine.
This report draws on the linked primary sources and reputable reporting. Company statements are treated as claims until independently demonstrated.
