Repository navigation
ci: route PR jobs to the pool only when the head repository is ours - #370
Merged
Merged
Conversation
avrabe
force-pushed
the
ci/fork-fallback-fail-closed
branch
2 times, most recently
from
November 14, 2026 19:19
93faa12 to
a36618f
Compare
The 21 `runs-on` expressions sent a job to GitHub-hosted runners when `github.event.pull_request.head.repo.fork` was true, and to the self-hosted pool otherwise. A deleted fork leaves head.repo null, so .fork is not true and the job landed on self-hosted: the fallback failed open. They now reach the pool only for a non-PR event (merge_group) or a pull_request whose head.repo.full_name equals github.repository; anything else, including a null head repository, gets ubuntu-latest. The matrix form in ci.yml keeps hosted entries (macos-latest) on their own runner. Reported by the org's security sweep, relayed by smithy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KEjmjczUmt6Rdd9DRKe75Z
avrabe
force-pushed
the
ci/fork-fallback-fail-closed
branch
from
November 17, 2026 18:38
a36618f to
b0393dd
Compare
…til wsc drops chrono rustix 1.1.4 has unsound xattr functions (RUSTSEC-2026-0486); 1.1.6 is the patched release and declares rust-version 1.65. Cargo.lock only. chrono is now flagged unmaintained (RUSTSEC-2026-0543, no patched release), which fails cargo deny on every branch. chrono reaches varve only through sigil's wsc 0.11.0 and wsc-attestation 0.11.0/0.12.0, the latest published versions. The ignore names its removal condition, tracked in pulseengine/sigil#382. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KEjmjczUmt6Rdd9DRKe75Z
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
21
runs-onexpressions across ci.yml, systest.yml, fuzz.yml and gate-probe.yml chose the runner withgithub.event.pull_request.head.repo.fork && 'ubuntu-latest' || <pool>. That check fails open: a PR from a deleted fork hashead.reponull,.forkis then not true, and the job runs on the self-hosted pool.The new form sends a job to the pool only for a non-PR event (
merge_group) or apull_requestwhosehead.repo.full_name == github.repository. Every other case goes toubuntu-latest, including a null head repository:The
rust-cpujobs change the same way. In the ci.yml matrix, hosted entries such asmacos-latestkeep their own runner. Job and check names are unchanged, so the required contexts still match. Fork PRs never reach the self-hosted pool under this form. As the existing comment says, the routing is not the security boundary (a fork can edit the workflow); the runner-group policy and fork-PR approval are.Evidence: all four workflows parse as YAML, and
grep head.repo.fork .github/workflowsis empty. No test or tool reads these expressions. This PR's own CI is the check that same-repo PRs still land on the pool.Reported by the org's security sweep, relayed by smithy.
Supply-chain gate
cargo denyfailed on every branch for two new advisories, so this PR also carries 0121bc7:deny.tomlwith its removal condition. chrono arrives only through sigil's wsc / wsc-attestation; tracked in wsc and wsc-attestation depend on chrono, now unmaintained (RUSTSEC-2026-0543) sigil#382.🤖 Generated with Claude Code
https://claude.ai/code/session_01KEjmjczUmt6Rdd9DRKe75Z