Skip to content

Migrate pull_request_target triggers #211

Open
6 of 27 issues completed
Open

Description

GitHub is going to disable pull_request_target triggers by default across all repos. They can be anabled with actions policies, but rather than go against that, I am investigating migrating the workflows to a safer trigger.

Why

  • From 2 December 2026 GitHub blocks pull_request_target by default in public repositories. A workflow that uses it stops running unless an Actions policy allows it.
  • GitHub ran a brownout on 16 November 2026, which failed 92 runs in esphome/esphome alone.
  • pull_request_target runs on pull requests from forks with a write token and the repository's secrets, while the pull request author controls the title, body, branch name and files. That combination is the usual cause of workflow security problems, which is why GitHub is turning it off by default.

The goal is for every one of these workflows to keep doing its job for pull requests from forks, on a trigger that cannot hand fork-controlled input a write token or a secret.

Scope

28 workflow files across 7 repositories used pull_request_target. One is already moved (imgbot-auto-merge.yml, esphome/esphome.io#8187). The other 27 each have a sub-issue in their own repository:

  • esphome/esphome: 6
  • esphome/esphome.io: 4
  • esphome/device-builder: 5
  • esphome/device-builder-frontend: 3
  • esphome/devices.esphome.io: 5
  • esphome/aioesphomeapi: 3
  • esphome/esphome-webserver: 1

Sub-issues

Sub-issues

6 of 27 Issues completed
Loading 27 sub-issues

Activity

  1. 1 remaining item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions