Build/Test Tools: Prepare for GitHub's default block on `pull_request_target`
Author: manzoorwanijkCreated Sep 18, 2026Updated Sep 18, 2026
Labels[Type] Build Tooling
Description
GitHub is adding a default Actions event policy that disables pull_request_target on public repositories with no applicable policy. Evaluate mode now, enforced on 2026-11-02. It blocks the event, not the workflow file, so other triggers survive.
Gutenberg qualifies unless WordPress already has an org-level policy. None of the six affected workflows check out pull request head code; each uses the event only for a writable token on fork pull requests. wordpress-develop is affected too, with two more workflows: see #66139.
| Workflow | Impact on 2026-11-02 |
|---|---|
enforce-pr-labels.yml |
Stops. Fork pull requests unmergeable if Check the type label is required. |
pr-labeling-automation.yml |
Stops. |
cherry-pick-wp-release.yml |
Stops. Backports become manual. |
required-changes-from-trunk.yml |
check-pr stops. Daily backfill survives. |
pull-request-automation.yml |
Welcome comment stops. push jobs survive. |
props-bot.yml |
Degraded. Comment and review triggers survive. |
Proposed action
- Confirm no org-level policy already covers
WordPress. - Check
trunkbranch protection forCheck the type labelandRequired changes from trunk, the only merge-blocking impact. - Use Settings > Actions > Policies > Insights before 2026-11-02 to confirm the blocked set.
- Add a policy allowing the event, narrowed to these six files with workflow file targeting.
Tracked for Core in #66139.
Source: WordPress/gutenberg