Repository navigation
ci: converge the remaining reusable workflow pins on ci-workflows v0.22.0 - #538
Conversation
…22.0 standards#536 moved this repository's nineteen composite-action pins to ci-workflows v0.22.0 (906ae7ef379ea4d2b8497f64475dce1d3d8715c4) and left three reusable-workflow pins behind. Two were blocked rather than deferred: zizmor.yml and osv-scanner.yml carried no reviewed contract at the tag, and reusableWorkflowStatus fails closed on a path@SHA it has not reviewed, so bumping either would only have turned the Runner policy lane red. standards#537 added both contracts. The third, link-check.yml, has been unblocked since standards#535 added its contract and was left out only for scope. All three move here. The pin sweep over .github/workflows now prints one SHA outside the three files the coordinator deferred (claude-review.yml, sync.yml and standards-sync-stuck-automerge-alert.yml, which still pin 0f8176e87e0be518f382664779655011bf95784a while the sync-family contracts wait on the repin lockstep's third decline reason). The zizmor caller gains security-events: write. That is not a widening chosen here: the reusable's own job declares the scope unconditionally at v0.22.0, because its new upload-sarif step stays gated on the input but expressions are not legal in a permissions scope, and a called workflow can only narrow the caller's GITHUB_TOKEN and never widen it. Without the grant the job cannot start. The lane stays annotations-only, upload-sarif defaulting false, so nothing is uploaded to code scanning and the SARIF guard still gates in-lane on fail-on-severity: high. The caller comment says so in place of the line that claimed no elevated grant. #537's contract admits exactly this pair and nothing else, which npm run lint:runner-policy proves both ways. No input contract changed: osv-scanner.yml's on.workflow_call declaration is byte-identical at the tag, and zizmor.yml's is additive (upload-sarif, which this caller does not pass). zizmor's CLI moves 1.27.0 to 1.29.0 with the severity gate now reading the tool's own graduated exit code; the live run is the oracle for that. Refs melodic-software/github-iac#378 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_019APkoJh8NVN773d82fBBSG
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 2m 15s —— View job Code review complete
No correctness or maintainability issues found. This is a clean, minimal, mechanically verifiable pin bump — I checked the load-bearing claims directly rather than taking the PR body at its word:
I wasn't able to execute |
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
No related issue: melodic-software/github-iac#378 tracks the ci-perf program (Phase 6b-i, standards follow-up)
Summary
standards#536 moved this repository's nineteen composite-action pins to
ci-workflows v0.22.0 (
906ae7ef379ea4d2b8497f64475dce1d3d8715c4) and left threereusable-workflow pins behind. Two of them were blocked rather than deferred:
zizmor.ymlandosv-scanner.ymlcarried no reviewed contract at the tag inthe
runner-policycomponent,reusableWorkflowStatusfails closed on apath@SHAit has not reviewed, and so bumping either would only have turned theRunner policy lane red. standards#537 added both contracts. The third,
link-check.yml, has been unblocked since standards#535 added its contract andwas left out of #536 only for scope.
All three move here, which is the last of this repository's own convergence.
Fix
.github/workflows/ci.ymlzizmor.yml31a5b76c4a0b663023dc1c944e2bcfc01d6f6c46906ae7ef379ea4d2b8497f64475dce1d3d8715c4(v0.22.0).github/workflows/ci.ymlosv-scanner.yml90f1c54935203fa31b5b3d1f41531228be2c2b7f906ae7ef379ea4d2b8497f64475dce1d3d8715c4(v0.22.0).github/workflows/link-check.ymllink-check.yml90f1c54935203fa31b5b3d1f41531228be2c2b7f906ae7ef379ea4d2b8497f64475dce1d3d8715c4(v0.22.0)One caller-side change goes with the zizmor bump: its job gains
security-events: write. That is not a widening chosen here. The reusable's ownjob declares the scope unconditionally at v0.22.0, because its new
upload-sarifstep stays gated on the input but expressions are not legal in apermissions:scope, and a called workflow can only narrow the caller'sGITHUB_TOKENand never widen it. Without the grant the job cannot start. Thelane stays annotations-only (
upload-sarifdefaults false), so nothing isuploaded to code scanning and the SARIF guard still gates in-lane on
fail-on-severity: high. The caller comment now says that in place of the linethat claimed no elevated grant. #537's contract admits exactly that pair and
nothing else.
No input contract changed.
osv-scanner.yml'son.workflow_calldeclaration is byte-identical at the tag;
zizmor.yml's is additive(
upload-sarif, which this caller does not pass). Both keepruns-on: ${{ inputs.runner }}and their workflow-levelpermissions.link-check.ymlwas already diffed in #535: declaration, permissions androuting identical, the whole diff a port of its tracking-issue steps to
actions/github-script. zizmor's CLI moves 1.27.0 to 1.29.0, with the severitygate now reading the tool's own graduated exit code; the live run is the oracle
for that.
Nothing else changes.
git diff origin/main --statis two files, 11 insertionsand 4 deletions.
Verification
Pin sweep,
grep -rhoE "ci-workflows/[^@ ]+@[0-9a-f]{40}" .github/workflows | sed -E 's/.*@//' | sort | uniq -c:One SHA outside the deferred files. The three remaining are
claude-review.yml,sync.ymlandstandards-sync-stuck-automerge-alert.yml, deferred by the coordinator: thesync-family contracts have no entry at the tag, and the repin lockstep's third
decline reason (
standards-sync.ymlold revision jobsyncreferencesneedsin a routing-relevant field) is still owed an answer. Bumping the sync engine in
the change whose merge triggers the fan-out is also the wrong order.
.github/actions/does not exist in this repository, so.github/workflowsis the whole surface.
npm run lint:runner-policyRunner policy passed.npm run lint:concurrency-policyConcurrency policy passed.npm run lint:dependabot-policyDependabot policy passed.components/pin-comment-convention/scan-workflow-files.sh .github/workflowsactionlint -shellcheck= -pyflakes=on both changed workflowszizmor --persona regularon both changed workflowsNo findings to report. (3 ignored, 43 suppressed)The Runner policy lane was also proven the other way while #537 was in review:
removing only the
security-events: writegrant from this caller makesrunner-policy.mjsprintrunner-target-contract: reusable workflow caller permissions.security-events must be exactly "write", so the grant and the contract are checked against eachother rather than assumed.
Related
Refs melodic-software/github-iac#378