GitHub Actions pull_request_target default blocking: audit affected workflows first; replace the trigger only when the job no longer needs its elevated context, and explicitly allow only the specific workflows that still do. Keep untrusted pull request code away from privileged credentials and reused macOS self-hosted Runners.
This applies to maintainers of public repositories that use the event for labeling, triage, or checks, and to CI owners reviewing Actions policy and token permissions. Apple-platform build leads should also decide whether untrusted PR checks and trusted Xcode builds need separate Runner environments.
Last updated: November 6, 2026. Dates and policy scope were checked against GitHub’s November 2 announcement, plus GitHub’s Actions policy and security documentation. Check the announcement again after each brownout and before rollout; a later official update takes precedence.
Before the enforcement date: identify the affected scope
The announced default applies to public repositories without an applicable Actions event policy. GitHub says private and internal repositories are outside this default rule, as is GitHub Enterprise Server. Do not extend that scope to other repository types or infer that a warning means permanent blocking has already begun. The official change announcement is the current source for the schedule and coverage.
GitHub lists temporary brownouts on November 9 and November 16 UTC, followed by default enforcement on December 2, 2026. These dates describe different checkpoints: the brownouts are opportunities to find workflows that fail under the changed behavior; December 2 is the stated start of the default rule. Confirm the current schedule in the announcement before using it as a release gate.
For the initial review, use GitHub’s policy evaluation information where it is available to your account or organization. The workflow execution policy guide describes policy administration. Availability and visibility can depend on the applicable account and repository settings, so do not assume every maintainer will see the same evaluation data.
| Review item | What to record | Why it matters |
|---|---|---|
| Repository | Repository name and whether it is public | Establishes whether the announced public-repository rule applies |
| Workflow | File path and the job that uses pull_request_target |
Identifies the workflow to change or explicitly allow |
| Purpose | Read-only check, label, triage, or another task | Connects the trigger to the job’s actual requirements |
| Current policy | Evaluation result and applicable event policy, if visible | Shows whether the workflow may be affected |
| Execution boundary | Token permissions, secrets, checkout behavior, Runner type | Exposes risks that a trigger change alone will not resolve |
If evaluation information is unavailable, inspect repository workflow files and the applicable policy settings yourself. Search for pull_request_target, then record each match with its purpose and execution path. A workflow that contains the event but never runs untrusted code still needs review: its policy eligibility and its code-execution risk are separate questions.
What the trigger does and does not tell you
pull_request_target runs in the context of the base repository, which can make repository permissions and secrets available in ways that require careful handling. GitHub’s security guidance for this event warns against checking out and executing untrusted pull request code in that privileged context.
That warning is not a reason to classify every use as unsafe or to approve every use automatically. A workflow that applies labels without executing contribution code has a different job from one that builds a fork’s changes. Record the task and the code it executes, not just the event name.
During trigger review: match the event to the task
Do not replace every pull_request_target entry with pull_request just to clear a policy failure. The events have different contexts and behaviors. GitHub’s event reference is the place to verify what each event exposes and when it runs.
A useful decision is based on the outcome the workflow must produce:
| Workflow purpose | Trigger decision to evaluate | Checks before approving |
|---|---|---|
| Read-only validation that does not need secrets | Whether pull_request provides the required event data and access |
Confirm the job does not depend on elevated base-repository context |
| Labeling or routing an external PR | Whether a privileged event remains necessary | Scope the event policy to the task and workflow; keep the job from executing contribution code |
| Build or test contributed code | Whether the job can run in a genuinely isolated, low-privilege environment | Review checkout, token access, secrets, Runner reuse, and persistent state |
| Trusted release or signing work | Keep it separate from untrusted PR execution | Limit which events can reach credentials and trusted build infrastructure |
These are choices to evaluate, not universal substitutions. For example, a labeler may need information or permissions that a read-only PR check does not. Conversely, a workflow that only reads PR metadata may not need to run in a privileged context at all. Compare the actual task with the workflow syntax reference, including its event and permission settings.
A policy exception is not a security review. Allowing an event says that policy permits a workflow to run; it does not prove that its code path, token permissions, or Runner are safe.
FAQ: timing and trigger choices
When does the default block begin? GitHub’s announcement sets December 2, 2026 as the start for public repositories covered by the new default. The November brownouts are temporary checks, not the permanent enforcement date. Use the current announcement as the source of truth if another GitHub page or an older internal note shows a different date.
How can maintainers find affected workflows? Review GitHub’s policy evaluation information when it is available, then compare it with repository workflow files and applicable policy settings. Keep a record of the repository, file, task, and result. If you cannot access evaluation data, perform that inventory directly rather than assuming a particular account feature is visible.
Can every privileged trigger be changed to pull_request? No. First confirm that the workflow can complete its task with the event context and permissions available to it. A metadata-only check may be a candidate; a workflow that labels or routes PRs may need another design. Do not broaden permissions simply to preserve existing behavior.
Can public fork PRs run on a macOS self-hosted Runner? Only after the security boundary has been deliberately assessed; do not treat a reused Runner as safe for untrusted code by default. A fork PR may contain code that attempts to access available credentials or leaves state behind. Separate untrusted validation from trusted Apple-platform builds rather than relying on a trigger swap or workspace cleanup.
For workflows that remain privileged: scope the policy
If a task genuinely needs pull_request_target, use the applicable Actions event policy to permit only what the task requires. Where policy controls support it, narrow the allowance to the relevant workflow file instead of enabling the event broadly. GitHub’s Actions policies overview and policy administration guide explain how workflow execution controls are managed.
The exact policy available depends on the repository and its controlling organization or enterprise settings. Confirm which policy applies before editing it; a repository-level change may not override a higher-level restriction. Record the setting’s scope and the workflow it is intended to authorize. Avoid creating a broad exception that silently permits unrelated workflows to use a privileged event.
Then review what the workflow can access:
- Set
GITHUB_TOKENpermissions to the minimum needed for the task. - Remove secrets from jobs that do not need them.
- Check whether any step checks out code from the pull request.
- Never check out and execute fork code in a high-privilege
pull_request_targetjob. - Keep label or routing logic separate from build and test commands when their trust requirements differ.
- Review third-party actions and scripts used in the job before granting them repository permissions.
GitHub’s secure-use reference covers token permissions, secrets, and workflow risks. Review the BerryVM privacy information separately when deciding how your team handles build credentials and data; a service policy does not replace your repository’s own secret-handling review.
Before relying on macOS builds: separate trust levels
A public PR workflow can execute code supplied by an external contributor. A macOS self-hosted Runner may have access to local files, credentials, caches, or other jobs’ environment, depending on how the team operates it. GitHub’s self-hosted Runner security documentation cautions that self-hosted Runners require careful trust-boundary decisions.
That creates a practical split for Apple-platform CI:
- Untrusted checks: treat contribution code as hostile. Use an environment that does not expose trusted signing credentials or persistent trusted state.
- Trusted Xcode builds: run only after the workflow has crossed the team’s trust gate and is authorized to access the required build environment and secrets.
- Shared Runner fleets: verify whether jobs can reuse a host or leave files, caches, processes, or credentials behind. A clean checkout is not proof that the host is clean.
- Release and signing jobs: keep these distinct from pull request validation and limit their triggers and credentials to the intended trusted path.
Changing the event does not make an untrusted fork safe, and cleaning the workspace does not establish host isolation. Review the job’s full execution path, including what a build script can access outside the checkout directory. Teams planning a controlled Apple-platform build host can use the BerryVM guides as a starting point for evaluating remote Mac workflows, but a remote Mac is not a security control for running untrusted PR code.
During validation: test policy and build results separately
Use a test PR to verify that the intended event still starts, that policy allows only the workflows you expect, and that the workflow reports a useful failure if it is blocked. The validation record should distinguish policy outcome from project outcome. A build failure does not prove that the policy blocked the event; a policy pass does not prove that the build is safe or correct.
For each migrated workflow:
- Test the intended PR path and confirm the expected trigger.
- Confirm the workflow file falls within the intended policy scope.
- Verify the token’s effective permissions and whether secrets are available.
- Confirm untrusted code cannot reach a trusted macOS build or signing job.
- Record the Runner used and whether its state can be reused by trusted jobs.
- Capture the policy result and build result as separate acceptance items.
If the team uses macOS self-hosted Runners, include their registration, access, and reuse model in the review. GitHub’s Runner documentation describes operational security considerations, but the team still needs to assess its own host boundaries and job design. A successful test run is evidence about that run, not a blanket security guarantee.
Before December 2: sign off the migration
Use the November 9 and November 16 UTC brownouts as review windows, then prepare for the announced December 2 default enforcement. Verify the schedule against GitHub’s latest announcement after each brownout and again before the change takes effect. If GitHub updates the date or scope, revise the plan to match the newer official notice.
- [ ] Inventory every public-repository workflow using
pull_request_target. - [ ] Record the policy evaluation result when available; otherwise document the manual workflow and policy review.
- [ ] Decide, for each workflow, whether it can use another suitable trigger or still needs the privileged event.
- [ ] Scope any retained allowance to the necessary event and workflow where the controls permit.
- [ ] Review token permissions, secrets, checkout behavior, and code execution.
- [ ] Document how untrusted PR checks are separated from trusted Xcode builds and macOS Runner access.
- [ ] Test the event, policy result, and project build as distinct outcomes.
- [ ] Recheck GitHub’s announcement before enforcement and update the sign-off if its guidance changes.
The migration is complete when the team can explain why each retained privileged workflow needs its event, what policy permits it, and how its code and Runner are bounded. A workflow list without an owner’s decision is not a completed review.
If the current setup relies on a developer’s local Mac, it can make builds unavailable when that machine is offline and can tie CI capacity to a workstation in active use. A general-purpose server may not provide the Apple toolchain your build requires. For trusted Xcode work that needs a controlled macOS environment, BerryVM can be considered as a remote Mac option; it does not make public fork code safe to run and should not share a trust boundary with untrusted PR jobs. First finish the workflow inventory and permissions review, then evaluate whether a rented Mac fits the trusted build portion of the pipeline.
Frequently asked questions
When does GitHub start blocking pull_request_target by default?
GitHub’s November 2, 2026 announcement says the default blocking for public repositories begins on December 2, 2026. It also lists temporary brownouts on November 9 and November 16 UTC. Treat those brownouts as migration checks, not as the permanent enforcement date, and recheck the announcement before rollout in case GitHub changes the schedule.
How can I identify workflows affected by the pull_request_target policy?
Start with GitHub’s policy evaluation information for the repositories you maintain, if it is available to your account and organization. Record each flagged repository, workflow file, and purpose. If you cannot access an evaluation result, inspect workflow definitions and repository policy settings directly; do not assume every maintainer sees the same evaluation interface.
Should I replace every pull_request_target workflow with pull_request?
No. Use pull_request only when the task can work with its event context and does not need the elevated base-repository context. Read-only checks that do not need secrets may be candidates, but labeling or routing external contributions may have different requirements. Review checkout behavior, token permissions, and what code actually runs before changing a trigger.
Can a macOS self-hosted Runner build fork pull requests from a public repository?
Do not run untrusted fork code on a Runner that can expose valuable credentials or contaminate a trusted build environment. A macOS self-hosted Runner is a host with persistent state and access boundaries to manage, not a disposable security boundary by default. Separate untrusted checks from trusted Xcode builds and assess the isolation of each job.
Further reading
Run Your macOS Workloads on BerryVM
Run your macOS builds and tests on a remote Mac with BerryVM.
