Skip to content

ci: converge the remaining reusable workflow pins on ci-workflows v0.22.0 - #538

Merged
kyle-sexton merged 1 commit into
mainfrom
ci-perf/phase-6b-i-self-reusables
Sep 6, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
ci-perf/phase-6b-i-self-reusables

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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 three
reusable-workflow pins behind. Two of them were blocked rather than deferred:
zizmor.yml and osv-scanner.yml carried no reviewed contract at the tag in
the runner-policy component, reusableWorkflowStatus fails closed on a
path@SHA it has not reviewed, and 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 of #536 only for scope.

All three move here, which is the last of this repository's own convergence.

Fix

File Pin From To
.github/workflows/ci.yml zizmor.yml 31a5b76c4a0b663023dc1c944e2bcfc01d6f6c46 906ae7ef379ea4d2b8497f64475dce1d3d8715c4 (v0.22.0)
.github/workflows/ci.yml osv-scanner.yml 90f1c54935203fa31b5b3d1f41531228be2c2b7f 906ae7ef379ea4d2b8497f64475dce1d3d8715c4 (v0.22.0)
.github/workflows/link-check.yml link-check.yml 90f1c54935203fa31b5b3d1f41531228be2c2b7f 906ae7ef379ea4d2b8497f64475dce1d3d8715c4 (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 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 defaults false), so nothing is
uploaded 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 line
that claimed no elevated grant. #537's contract admits exactly that pair and
nothing else.

No input contract changed. osv-scanner.yml's on.workflow_call
declaration is byte-identical at the tag; zizmor.yml's is additive
(upload-sarif, which this caller does not pass). Both keep
runs-on: ${{ inputs.runner }} and their workflow-level permissions.
link-check.yml was already diffed in #535: declaration, permissions and
routing 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 severity
gate now reading the tool's own graduated exit code; the live run is the oracle
for that.

Nothing else changes. git diff origin/main --stat is two files, 11 insertions
and 4 deletions.

Verification

Pin sweep, grep -rhoE "ci-workflows/[^@ ]+@[0-9a-f]{40}" .github/workflows | sed -E 's/.*@//' | sort | uniq -c:

      3 0f8176e87e0be518f382664779655011bf95784a
     22 906ae7ef379ea4d2b8497f64475dce1d3d8715c4

One SHA outside the deferred files. The three remaining are
claude-review.yml, sync.yml and
standards-sync-stuck-automerge-alert.yml, deferred by the coordinator: the
sync-family contracts have no entry at the tag, and the repin lockstep's third
decline reason (standards-sync.yml old revision job sync references needs
in 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/workflows
is the whole surface.

Check Result
npm run lint:runner-policy Runner policy passed.
npm run lint:concurrency-policy Concurrency policy passed.
npm run lint:dependabot-policy Dependabot policy passed.
components/pin-comment-convention/scan-workflow-files.sh .github/workflows exit 0
actionlint -shellcheck= -pyflakes= on both changed workflows exit 0
zizmor --persona regular on both changed workflows No 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: write grant from this caller makes
runner-policy.mjs print
runner-target-contract: reusable workflow caller permissions.security-events must be exactly "write", so the grant and the contract are checked against each
other rather than assumed.

Related

Refs melodic-software/github-iac#378

…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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-06T03:20:41.456067Z 6282227 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude

claude Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 2m 15s —— View job


Code review complete

  • Gather context (PR body, changed files)
  • Review .github/workflows/ci.yml diff
  • Review .github/workflows/link-check.yml diff
  • Verify claims in PR description against actual diff (permissions grant, contracts, pin sweep, diff stat)
  • Post findings

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:

  • Pin sweep reproduced exactly: grep -rhoE "ci-workflows/[^@ ]+@[0-9a-f]{40}" .github/workflows | sed -E 's/.*@//' | sort | uniq -c → 3 0f8176e8… / 22 906ae7ef…, matching the table in the description.
  • security-events: write grant is contract-required, not a widening: components/runner-policy/policy.json#L1192-1201 pins zizmor.yml@906ae7ef… to allowedCallerPermissions: {contents: read, security-events: write} — an exact match to the new grant added at ci.yml#L693-L701. The osv-scanner.yml@906ae7ef… contract (policy.json#L1183-L1191) only requires contents: read, matching the unchanged osv-scanner job permissions, and link-check.yml@906ae7ef… (policy.json#L1157-L1173) requires exactly contents: read, issues: write, also unchanged. All three caller permission blocks are the minimum the reviewed contracts allow — nothing over-granted.
  • upload-sarif really isn't reachable from this caller: the zizmor contract's allowedInputs is ["runner", "paths", "fail-on-severity"] — upload-sarif isn't in the allow-list at all, so the claim that this caller can't enable code-scanning upload is enforced by policy, not just by omission in the with: block.
  • Diff shape matches exactly: git diff origin/main...HEAD --stat → 2 files, 11 insertions, 4 deletions, as stated.
  • Pin-comment form is correct: the new # v0.22.0 trailing comments match the primary (tag) form documented in components/pin-comment-convention/pin-comment-patterns.sh.
  • The updated comment at ci.yml#L695-L700 accurately reflects the new grant and doesn't leave any stale "no elevated grant" claim behind.

I wasn't able to execute npm run lint:runner-policy / actionlint / zizmor in this sandbox (command execution for those was not approved), so I couldn't re-run the PR's own verification table, but every claim I could check statically against the repo's own policy files and diff held up.

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count.

@kyle-sexton
kyle-sexton merged commit 305e17b into main Sep 6, 2026
2 checks passed
@kyle-sexton
kyle-sexton deleted the ci-perf/phase-6b-i-self-reusables branch September 6, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant