Route trusted Linux builds to managed runners - #1270
Conversation
Same-repository branches are controlled by repository collaborators and should use organization capacity, while fork pull requests remain arbitrary code. Main-branch reusable workflows make that trust decision enforceable even when a fork edits its own workflow files. Generated with Codex Co-authored-by: Codex <noreply@openai.com>
roborev: Combined Review (
|
pull_request_target associates validation with the base commit, so it cannot reliably gate updates to a same-repository PR. Use ordinary pull_request dispatchers and keep the runner trust decision inside the main-pinned reusable workflows, where both head and base repository identities must match before selecting the managed fleet.
roborev: Combined Review (
|
|
This finding is already mitigated by the organization runner-group policy and does not require a workflow change here. I verified the live
A fork can modify a This is the layered boundary intended by the organization runner policy: selected-workflow enforcement prevents direct dispatcher access, while the reusable workflow independently derives admission from immutable event context. The finding would become valid if |
Same-repository pull-request branches are controlled by repository collaborators and should use organization-managed Linux capacity. Fork pull requests remain arbitrary code—even when the author is an organization member—and must continue to use GitHub-hosted runners.
Each PR now triggers only
pull_request, so required checks are associated with the current PR revision. The dispatcher calls a main-pinned reusable workflow, and that immutable workflow independently requires both the head and base repositories to equalgithub.repositorybefore selecting the managed public fleet. The caller supplies no runner or trust input.The organization runner policy restricts access to the exact main-branch reusable workflows. Main pushes use the managed Linux fleet; Windows, macOS, ARM Linux, tags, and fork PRs retain their hosted runners.