Repository navigation
ci: add PR event workflow - #3087
Conversation
A no-data pull_request workflow that workflows acting on fork pull requests can listen for through workflow_run, as GitHub blocks pull_request_target by default from 2 December 2026.
There was a problem hiding this comment.
🟢 Approval recommended
The changes add the permissionless pull-request event bridge and corresponding lock entry without altering current repository behavior, with no active review issues remaining.
No open issues 🎉
What changed in this PR
Adds a permissionless pull_request event bridge for future workflow_run-based replacements of pull_request_target, without changing current repository behavior.
Changes:
- Added
.github/workflows/pr-event.ymlwith selected pull-request activity triggers, no permissions, and a no-op job. - Registered the workflow in
.github/workflows/actions.lock. - The selected trigger list is narrower than the existing
pull_request_targetactivity coverage and may omit events needed by future migrations.
| File | Description |
|---|---|
| .github/workflows/pr-event.yml | Adds a permissionless no-op pull-request event workflow with selected activity triggers. |
| .github/workflows/actions.lock | Records the new workflow as containing no external actions requiring locking. |
Review effort: Lite (adaptive)
Merging this PR will not alter performance
Comparing Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3087 +/- ##
=======================================
Coverage 99.77% 99.77%
=======================================
Files 300 300
Lines 26564 26564
=======================================
Hits 26503 26503
Misses 61 61
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
What does this implement/fix?
Adds
.github/workflows/pr-event.yml, apull_requestworkflow that carries no data and has no permissions. The same file, byte for byte, goes into every repository that still usespull_request_target.GitHub blocks
pull_request_targetby default in public repositories from 2 December 2026. Workflows that need to act on pull requests from forks can listen for this one throughworkflow_runinstead, and read the pull request from the API with their own token. Nothing listens for it yet, so this changes no behaviour on its own.Part of esphome/backlog#211.
Related pull requests (the same file in each repository):
Related issue or feature (if applicable):
Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocsmaintenancecidependenciesFrontend coordination
Checklist
ruff,codespell, yaml/json/python checks).tests/where applicable.components.index.json/definitions/components/*.jsonhave not been hand-edited (regenerate viascript/sync_components.pyif a sync is needed).docs/ARCHITECTURE.mdand/ordocs/API.md.