GitHub pull_request_target: rehearse the December block
Translate the 2 November deadline change into a narrow workflow inventory, brownout rehearsal and evidence-backed exception decision; do not turn a whole-repository allow into the default repair.
Quick answer
GitHub’s 2 November announcement moves the default public-repository pull_request_target block to 2 December 2026, with November brownouts first. Inventory affected workflows, inspect their trust boundaries and effective policies, then migrate, retain the block or propose a narrow exception. A successful run in evaluate mode is not an approval.
On this page
GitHub's announcement of 2 November moves the default public-repository block on pull_request_target to 2 December 2026, with November brownouts before enforcement. Use the extra interval to identify affected workflows and decide which should change event, remain blocked or receive a narrow exception. Treat this as a workflow-execution policy change; a green job today does not establish that its trigger will remain permitted. [1][2][6]
What did GitHub change on 2 November?#
The enforcement date changed, while the need to review privileged pull-request automation remains. GitHub's dated changelog says the earlier November deadline has moved to December. It also identifies temporary enforcement windows on 9 and 16 November, each from 16:00 to 18:00 UTC. This article is a dated analysis of that announcement, checked against the live documentation during editorial review. It does not promise to report later timetable changes. [1]
The announced default affects public repositories on GitHub Free, Team and Enterprise Cloud. Private and internal repositories are outside this particular default change, and the announcement excludes GitHub Enterprise Server. An applicable Actions event policy can explicitly allow the event. Confirm both repository visibility and governing policies before deciding whether a workflow is affected. [1][2][3]
The announced default currently uses evaluate mode: policy insights can show attempts that would be blocked while allowing execution. Creating custom policies in Evaluate mode is separately limited to GitHub Enterprise Cloud in the policy documentation. [2] During the announced brownouts, affected attempts instead fail with an annotation and the workflow does not execute. GitHub says the default returns to evaluate mode after each temporary window. Do not interpret an application test failure and a blocked workflow attempt as the same incident. [1][2]
Give each workflow owner an inventory entry with its proposed decision and supporting evidence. Renaming a trigger can change its execution context and available credentials. Allowing the original trigger can preserve a risky privilege boundary. Both choices need a reason linked to what the workflow actually does.
Which workflows need a decision before the brownouts?#
Start with workflows that name pull_request_target, then trace the code, actions and artifacts they use. A text search is a discovery aid. It cannot determine whether the event is active, whether a repository policy permits it or whether a called workflow executes untrusted input.
# Read-only discovery from a checked-out repository.
rg -n 'pull_request_target|workflow_run|issue_comment' .github/workflows
rg -n 'actions/checkout|gh pr checkout|git fetch|download-artifact' \
.github/workflowsReview YAML structure after finding matches. A comment or shell string can contain an event name without declaring that trigger. Conversely, an action invoked by a short workflow can hide the operation that matters. Follow reusable workflows and action implementations to the point where data is consumed or code is run.
Scenario: an illustrative public library has ordinary fork unit tests, a labeler maintained on the default branch and an older preview builder. The preview builder wants access to a private dependency source while building a contributor's branch. These are fictional workflows chosen to show why a single repository-wide decision is inadequate.
For each workflow, record the event, path, actor assumptions, checked-out revision, secret references, token permissions and runner type. Add downloaded artifacts and commands that fetch code outside the checkout action. A workflow can cross a trust boundary without containing a visually obvious unsafe checkout step. GitHub's security guidance discusses these alternate routes. [3][5]
Separate discovery from exposure assessment. A labeler using the event is a candidate for review, not proof of a vulnerability. A test workflow using a different event is not automatically safe either. The inventory needs enough detail to explain the proposed disposition without making unsupported claims about the repository's current security.
Keep an owner for each decision. Assign a workflow owner before the brownout so contributor reports reach someone who can act. The owner should know which user-visible automation depends on the workflow and who can approve its replacement or retirement.
Inventory the consumer as well as the producer. A workflow that posts a status or publishes a preview may feed another automation or a contributor checklist. Record that dependency before retiring the workflow, so the replacement decision includes the missing output and its owner. This keeps a successful policy block from being mistaken for a complete migration.
Does this workflow need the privileged event?#
Ask whether it must act with base-repository privileges and whether it executes contributor-controlled content. Those questions should be answered independently. Needing to label a pull request does not mean needing to build its branch with credentials.
GitHub documents pull_request_target as running in the context of the base repository's default branch rather than the pull request's merge commit. The ordinary default behavior does not execute fork code. Risk appears when a workflow brings in and runs untrusted code while retaining that privileged context. The event documentation advises against using it to build or run pull-request code. [3][4]
In the illustrative unit-test workflow, the intended job is to test contributor changes without privileged repository access. The review should consider whether pull_request provides the required behavior, then verify any fork approval rules and downstream required-check expectations. Do not copy the old secret assumptions into the new event and discover the missing credential only when contributions stop receiving checks.
The labeler has a different purpose. It may need to update labels based on pull-request metadata using trusted code. Review how metadata reaches the action or shell, whether checkout is necessary, and which token permissions the operation needs. The event's usefulness does not justify executing the pull request's code to decide a label.
The preview builder is the difficult branch. Its current design mixes untrusted build inputs with privileged access. An event-policy exception does not separate them. The owner needs to redesign the work boundary, constrain the environment or retire that automation until its privilege requirements can be justified. Simply changing the trigger or adding a broader allow rule does not answer the original risk.
| Illustrative workflow | Required outcome | Proposed disposition | Evidence needed |
|---|---|---|---|
| Fork unit tests | Test contributor changes | Assess migration to ordinary PR execution | Fork run completes with expected permissions and checks |
| Trusted labeler | Update metadata without running fork code | Consider a path-scoped exception if necessary | Code and input path reviewed; policy insights match the path |
| Privileged preview build | Produce a preview from contributor changes | Hold until the trust boundary is redesigned | No untrusted execution with unintended credentials |
| Retired legacy helper | No remaining product requirement | Leave blocked and remove through normal review | Owner confirms no required check or operational dependency |
These dispositions are proposed decisions for the fictional inventory. They are not observations from a GitHub tenant. In a real repository, missing requirements or different actor policies can change the answer. Retain that uncertainty in the record instead of forcing every workflow into an exception category.
What should an exception record contain?#
It should explain why the privileged event is still required and identify the narrow workflow scope that has been reviewed. GitHub documents workflow-file targeting and layered execution protections across repository, organization and enterprise levels. A repository decision must therefore account for other applicable protections. [2][6]
The following YAML is an internal decision record, not a GitHub policy API payload or importable configuration. It makes the review questions explicit without inventing an unsupported policy schema.
workflow: .github/workflows/label-incoming.yml
purpose: classify incoming pull requests using trusted code
decision: exception-proposed
required_event: pull_request_target
code_source: reviewed default-branch implementation
fork_code_execution: prohibited
input_boundary: PR metadata treated as untrusted data
token_review: only permissions required for labeling
policy_scope: exact reviewed workflow path
evidence:
- effective policies reviewed at all applicable account levels
- representative allowed and denied attempts inspected
- owner and rollback procedure recordedUse workflow path targeting to express the reviewed scope where the platform supports it. Do not assume that allowing an event at one level overrides a restriction elsewhere. GitHub's documentation describes protections layering, so inspect the effective combination rather than relying on the name of a single policy. [2]
Record the action implementations as well as the top-level file. If the labeler calls another workflow or a third-party action, its trusted input boundary includes that dependency. An exception record that describes a thin wrapper while ignoring the implementation cannot explain what was reviewed.
An exception also needs an invalidation condition. A change that begins checking out a fork, executing downloaded files or using additional credentials should trigger review of the decision. The record can point to existing code review ownership rather than creating a parallel approval system. The practical requirement is that the scope of the exception continues to match the scope of the evidence.
Avoid presenting a proposed record as approval. “Exception proposed” and “exception configured and verified” describe different states. Keeping those states separate helps the release team understand whether the workflow is expected to survive enforcement or is still waiting on a design decision.
How do you rehearse the policy without declaring victory too soon?#
Use policy insights and representative workflow attempts to verify both allowed and denied paths. GitHub provides insights for runs blocked by active policies and runs that would have been blocked by evaluate policies. That distinction matters when recording results. [2]
Before a brownout, establish the expected disposition for each inventoried workflow. Confirm where operators will see an error annotation, who handles reports from contributors, and which required checks might be affected. A blocked workflow can be the intended policy result while still creating an operational problem if another rule waits for a check that will never appear.
For the illustrative labeler, observe an attempt matching the reviewed path and verify that it performs only the intended metadata action. Also test an attempt that should be denied. A policy accepting the happy path may still be too broad. Record the event, actor, workflow path, policy state and outcome together so a reviewer can reconstruct why the attempt was allowed or rejected.
For migrated unit tests, verify that the new event produces the expected checks for fork contributions and that the workflow does not depend on privileges unavailable in that context. Treat a skipped job, an approval wait, a policy block and a failed test as separate outcomes. Their remediation owners may differ.
Do not change every applicable policy to allow the event merely because one automation fails during a brownout. First compare the failure with the inventory. If the failed workflow has no approved need, the block may be correct. If the policy misses a reviewed exception, fix the smallest scope that explains the mismatch.
After the temporary window, verify the current policy state rather than assuming the entire account returned to its earlier configuration. The vendor's announced default-mode transition does not describe every custom policy a team may have created. Custom protections and other restrictions still need their own observation. [1][2]
What remains outside this default protection?#
Other privileged execution paths still require review. GitHub's secure-use guidance discusses workflow_run and treating artifacts from other workflows with caution. Changing the event name does not establish provenance for an artifact or make code safe to execute with credentials. [3][5]
Similarly, an event allowlist answers whether a workflow attempt may begin. It does not replace input handling, token-permission review, dependency review or runner isolation. A trusted workflow can still process an untrusted pull-request title unsafely, and a broad exception can restore precisely the execution path the default was meant to constrain.
Close the release record with the paths reviewed, decisions taken, policy observations, representative attempts and automation still held back. “All workflows green” is not enough if the expected denied case also ran. “All blocked” is not enough if necessary contributor checks disappeared without a replacement.
Our GitHub Actions hardening guide covers the wider supply-chain review. This article adds the dated deadline and policy-rehearsal decision, rather than treating the announcement as a replacement for those controls. No GitHub repository settings, permissions or workflows were changed to produce this analysis.
Questions about the announced block#
- Does the change disable pull_request_target everywhere?
- The announced default targets affected public repositories, with applicable event policies able to explicitly allow the trigger. Private and internal repositories are outside this default change. Inspect visibility and effective policies before predicting a particular workflow's result. [1][3]
- Does evaluate mode mean a workflow is approved?
- No. It allows execution while exposing what the policy would block. Use insights to identify affected paths and review their purpose. An evaluate observation is evidence about a prospective policy result, not a security approval. [2]
- Should we rename every trigger to pull_request?
- Only after checking the workflow's purpose, execution context and credential requirements. Ordinary contributor tests and trusted metadata automation can need different designs. A rename alone does not preserve behavior or establish that a privilege boundary is appropriate. [3][4]
- Can a workflow_run follow-up safely trust the build artifact?
- It must treat the artifact according to its provenance and contents. A separate privileged workflow does not make data from an untrusted contributor trustworthy. GitHub's secure-use guidance explicitly calls for caution around artifacts from other workflows. [5]