Opened 8 weeks ago
Last modified 5 days ago
#66139 accepted task (blessed)
Build/Test Tools: Prepare for GitHub's default block on `pull_request_target`
| Reported by: | manzoorwani.jk | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | high | Milestone: | 7.2 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
GitHub is adding a default Actions event policy that disables pull_request_target on public repos with no applicable policy. Evaluate mode now, enforced on 2026-11-02. It blocks the event, not the file, so other triggers survive.
Both repos qualify unless WordPress already has an org policy. None of the eight affected workflows check out pull request head code; each uses the event only for a writable token on fork pull requests.
| Repo | Workflow | Impact on 2026-11-02 |
|---|---|---|
| wordpress-develop | props-bot.yml | Degraded. Comment and review triggers survive. |
| wordpress-develop | pull-request-comments.yml | trac-ticket-check stops. Playground job survives.
|
| gutenberg | enforce-pr-labels.yml | Stops. Fork pull requests unmergeable if required. |
| gutenberg | pr-labeling-automation.yml | Stops. |
| gutenberg | cherry-pick-wp-release.yml | Stops. Backports become manual. |
| gutenberg | required-changes-from-trunk.yml | check-pr stops. Daily backfill survives.
|
| gutenberg | pull-request-automation.yml | Welcome comment stops. push jobs survive.
|
| gutenberg | props-bot.yml | Same. |
Proposed action
- Confirm no org-level policy already covers
WordPress. - Check Gutenberg
trunkbranch protection forCheck the type labelandRequired changes from trunk, the only merge-blocking impact. - Use Settings > Actions > Policies > Insights in both repos before 2026-11-02.
- Add a policy allowing the event, narrowed to these eight files with workflow file targeting.
Change History (9)
#2
@
7 weeks ago
This is more of a GitHub repo/org admin action, than a PR. I don’t have the privileges to make the changes.
One action item though before we make the changes will be to audit the listed workflows and see if we still need that event or if we can serve the purpose without using that particular event trigger.
#3
@
7 weeks ago
- Owner set to
- Status new → assigned
@desrosj Could you please take a look at this one?
#4
@
4 weeks ago
- Milestone Awaiting Review → 7.2
- Type enhancement → task (blessed)
- Version trunk
Just confirming that this is on my radar. Since this is more of an auditing and configuration effort, I'm reclassifying as a Task.
#5
@
10 days ago
As of 2026-11-04, both affected workflows in wordpress-develop, props-bot.yml and pull-request-comments.yml, are still running successfully on pull_request_target after the 2026-11-02 enforcement date. The same is true for the six Gutenberg workflows in https://github.com/WordPress/gutenberg/issues/83138. It looks like a policy allowing the event is already in place, possibly at the WordPress org level. Could someone with admin access confirm, so this ticket and the Gutenberg issue can be closed?
#6
@
10 days ago
Thanks for checking, @dhananjaykuber. I can confirm the runs, but not the policy.
pull_request_targetruns kept succeeding after enforcement began on 2026-11-02. That day, props-bot.yml had 210 runs and pull-request-comments.yml had 227. Of the latest 100 for each, none failed; the rest were skipped. November 3 and 4 look the same.- I don't have admin access to the repository's Actions policies, so I can't see which policy allows the event, or whether it is narrowed to the listed workflow files as the description proposes.
@desrosj, could you confirm which policy is in place? If it allows the event for every workflow, narrowing it to these files is still worth doing before we close this ticket and Gutenberg issue #83138.
#7
@
5 days ago
- Owner changed from to
- Status assigned → accepted
The policy is going to be enforced on December 2nd, not November 2nd, which is why those two workflows were still running on the pull_request_target trigger until now. From the GitHub blog post:
Enforcement was previously scheduled for November 2, 2026.
There's a brownout today and some runs are erroring due to it.
There is no org-level or repo-level policy that enables the pull_request_target target. I am going to add one at the repo level for props-bot.yml and pull-request-comments.yml.
#8
@
5 days ago
I have added a policy to the wordpress/wordpress-develop repo that allows the following events used by props-bot.yml and pull-request-comments.yml:
pull_request_targetissue_commentpull_request_reviewpull_request_review_commentworkflow_run
#9
@
5 days ago
Noting that another workflow using pull_request_target was added to Gutenberg in review-routing.yml via GB#86449. This was implemented with awareness of security considerations and is expected to be safe, but will need to be allowlisted along with the rest mentioned in the original ticket.
@manzoorwanijk Do you plan on working on a PR for this change?