ci: lint every workflow, not two of them
actionlint has been in this repository for a while, pinned to 1.7.7 with a checksum-verified download and its own downloader test. It lints two workflows out of 89:
"$RUNNER_TEMP/actionlint" \
.github/workflows/cmux-tui-testbox-warmup.yml \
.github/workflows/testbox-broker-guard.yml
The other 87 have never been linted — ci.yml, release.yml, every publish lane, every iOS lane. A ${{ }} typo, an undefined needs reference, a steps.x.outputs that does not exist: in 87 of 89 workflows those surface as a failed run, minutes or a release later, instead of as a failed check on the pull request that wrote them.
A list is the wrong shape for this job. The workflows it omits are exactly the ones nobody remembered, and a list cannot omit a file loudly.
Resulting behavior
actionlint runs with no file arguments, so it discovers the workflows itself and one added next month is linted next month. It stays in testbox-broker-guard.yml, which already runs on every pull request with no path filter, and deliberately so — the workflow's own comment says a path filter "is exactly the thing a change that moves the guard could slip past." The same reasoning applies to a lint: one that only fires when certain files change cannot see a workflow broken by an edit somewhere else.
Repo-wide, that surfaced seven findings, and this pull request lands with zero.
Five shellcheck warnings, all deliberate code
Each gets an inline # shellcheck disable= carrying the reason, so the justification sits next to the line rather than in a config file:
| workflow | rule | why it is intentional |
|---|---|---|
ci.yml | SC2034 | parent2 in read -r commit parent1 parent2 extra is a positional placeholder so extra lands on a third parent. Reading it is not the point; detecting an octopus merge is. |
ci-macos.yml | SC2206 | the unquoted expansion is the glob the line exists to perform, with nullglob set around it. |
perf-activation.yml | SC2024 | the redirect deliberately runs as the runner rather than through sudo, so perf-results/ does not become root-owned. |
ios-streamed-validate.yml ×2 | SC2034 | bounded poll loops that never read the counter — for i becomes for _. |
Two workflow-level findings
ci-macos-compat.yml's macos-15-intel is a false positive. actionlint 1.7.7 carries a fixed list of GitHub-hosted labels and that one postdates it. Verified rather than assumed: in run 34656982146 the compat-tests (macos-15-intel, ...) job was served by runner GitHub Actions 1000200229 — the same kind of runner name as the macos-14 job beside it, not a self-hosted machine. It joins the labels in .github/actionlint.yaml.
test-ios.yml's empty swift_package choice option is a real schema violation, and it is deliberately not fixed here. The first option is "", the default, meaning "run the simulator suite rather than a SwiftPM package". With type: choice, GitHub validates the submitted value against the option list — so deleting "" starts rejecting any existing dispatcher that passes an empty string. That workflow is dispatch-only and driven from outside this repository, so the call belongs to whoever owns those dispatchers. Suppressed in actionlint.yaml with that reasoning written next to it.
Severity floor
SHELLCHECK_OPTS: -S warning. There are 18 info and style findings across the tree — SC2086 on a variable that cannot word-split, SC2035 on a deliberate glob, SC2129 on consecutive redirects. Warnings and errors are the levels at which shellcheck is describing a way a script can behave differently than it reads; below that it is describing taste. Set explicitly rather than inherited, so a runner image change cannot quietly move the bar in either direction.
How it stays fixed
tests/test_ci_actionlint_covers_every_workflow.py requires that:
- the invocation takes no file arguments — narrowing it back to a list fails;
- the severity floor is set explicitly rather than inherited;
- the linter is still the pinned, checksum-verified download;
- the lint still runs on
pull_requestwith nopaths:filter; - the suppression set in
actionlint.yamlis exactly{test-ios.yml}, and each suppressed file exists.
That last one is the ratchet. Suppressions stay legal, but adding one means editing a test, which is a reviewed act, rather than adding a line to a config nobody diffs.
It runs in testbox-broker-guard.yml immediately before the lint, so it is always-on for the same reason the lint is.
Validation
Two commits, per the repository's regression policy:
24839d2adds the guard alone. It fails four assertions against the two-file invocation.5b8312alints everything. It passes.
actionlint over all 89 workflows exits 0, both with and without pyflakes on PATH (it lints embedded Python in run: bodies when it is available, and the runner may differ from a laptop). tests/test_ci_testbox_broker_guard.py and tests/test_ci_actionlint_download.sh both pass.
No workflow behaviour changes: four of the five shellcheck fixes are comments, and the fifth renames two unused loop counters to _.
🤖 Generated with Claude Code
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Extends actionlint to lint all 89 workflows instead of two, catching ${{ }} typos and undefined references as pull request check failures rather than as failed runs later.
- Runs actionlint with no file arguments, so it discovers every workflow itself and newly added workflows are covered automatically.
- Adds a test guard that fails if the lint invocation is narrowed back to a file list, the severity floor is inherited, or a path filter is added.
- Adds five inline
# shellcheck disable=comments for deliberate shell code shellcheck misreads; renames two unused loop counters to_. - Adds
macos-15-intelto the hosted-runner label list in.github/actionlint.yaml; actionlint 1.7.7 predates that label. - Suppresses the empty
swift_packagechoice option intest-ios.yml; removing it would break existing external dispatchers that pass an empty string. - Sets
SHELLCHECK_OPTS: -S warningexplicitly so the runner image cannot change the severity floor.
Refactors
- Suppressions are centralized in
.github/actionlint.yaml, and the allowed set is pinned in the guard test, so adding one requires a reviewed test edit.