Repository navigation
Description
Chore Type
CI / Build change
Description
actionlint lints the shell in workflow run: steps, and the repo's actionlint pre-commit hook is scoped to .github/workflows/*.ya?ml. Composite actions under .github/actions/*/action.yml are not workflows: actionlint refuses the file outright (unexpected key "runs" for "workflow" section), so their run: bodies get no shellcheck pass at all — not locally, not in CI.
#1692 moved the seven flake-gate step bodies out of ci.yml into the test-project composite, where they join the prek, BATS, pytest and coverage bodies already there. Every one of those bodies was shellchecked by hand for that PR, but nothing guards them going forward: a shell mistake in a composite step is invisible until it fails on a runner.
Acceptance Criteria
- Every
run:body in.github/actions/*/action.ymlis shellchecked in pre-commit and in CI (the lint lane) - The pre-existing deliberate
SC2086on$TEST_ARGSintest-projectis either fixed or suppressed inline, so the gate starts green - The extraction handles
shell: bashbodies with${{ }}expressions without false positives (neutralise them the way actionlint does, or document the limitation)
Implementation Notes
- Cheapest: a small script (Python, in
scripts/orpackages/vig-utils) that parses each composite's YAML, writes everyrun:body to a temp file with a#!/usr/bin/env bashshebang and${{ … }}replaced by a placeholder, and runsshellcheck -x -S warningover them; wire it as alanguage: systemprek hook scoped to^\.github/actions/.*/action\.ya?ml$. - Alternative:
actionlinthas no composite-action mode; do not wait for one. setup-env,build-image,test-image,test-integrationcomposites are in scope too.
Related Issues
- Raised by the [CHORE] Split the serial Project Checks job into parallel lanes #1692 review; [CHORE] Split the serial Project Checks job into parallel lanes #1692 moved the bodies
Priority
Low
Changelog Category
No changelog needed
Activity
c-vigo commentedon Sep 25, 2026
Triage 2026-09-25: implement, and widen the scope to the scaffold's composites
Inventory: 44
run:bodies across 7 composites, allshell: bash, none missingshell:. Five are devkit's own (build-image5,setup-env5,test-image5,test-integration8,test-project12) and two live underassets/workspace/.github/actions/(resolve-toolchain2,setup-devkit-toolchain7) — the composites consumers actually run, equally unlinted, and missed by the issue's^\.github/actions/regex.actionlint's exact shellcheck recipe is reproducible (captured by stubbing its
-shellcheck=):stdin =
set -eo pipefail\n+ body, with each${{ … }}replaced by_repeated to the same length (column offsets preserved). The-elist is precisely the placeholder-induced false-positive set, so mirroring these three facts gives actionlint parity rather than an approximation. With it, exactly one finding at-S warningtoday:test-integration"Start podman socket", SC2046 onunix:///run/user/$(id -u)/podman/podman.sock— fix, don't suppress. The$TEST_ARGSSC2086 the description cites isinfolevel and does not fire at-S warning(19 info/style findings exist; not gated). No tool covers this: actionlint has no composite mode (#245 closed as dup of the dormant #46; 1.7.12 is latest),action-validatoris schema-only.Plan: a
shellcheck-composite-actionsconsole script inpackages/vig-utils(on PATH in every consumer env, store-path resolvable, so it can be scaffolded) + anix/hooks.nixentry withscaffold = trueandfiles = "(^|/)\.github/actions/[^/]+/action\.ya?ml$"covering both trees; hand-sync the rendered.pre-commit-config.yamland its scaffold mirror (tests/test_flake_hooks.pydrift-gates it). CI needs no wiring:project-lintrunsprek run --all-files. Pytest fixtures: clean body, planted SC2046, a${{ }}-in-[ … ]body that must not raise SC2050,shell: pythonskipped, offsets preserved. Consumers pick the hook up on their nextdevkit-upgradePR.test(vig-utils): pin shellcheck over composite-action run bodies
test(vig-utils): correct the composite-action expression fixtures
feat(vig-utils): shellcheck the run bodies of composite actions
test(hooks): pin the composite-action shellcheck hook scope and entries
feat(hooks): shellcheck composite actions in pre-commit and scaffold …
fix(ci): quote the podman socket uid in test-integration
docs(changelog): record the composite-action shellcheck hook
test(vig-utils): pin a note for an unrecognised composite shell
feat(vig-utils): note a composite step skipped for an unknown shell
docs(changelog): state which consumers receive the composite shellche…
feat(hooks): shellcheck the run bodies of composite actions (#1718)
c-vigo commentedon Sep 25, 2026
Done in #1718, merged to
dev(447829c). The hook is scaffolded; delivery to existing consumers with a preserved.pre-commit-config.yamlis tracked in #1717 (insert row on the release that first ships it).test(init): pin the shellcheck-composite-actions insert row at 1.17.0
feat(init): insert the shellcheck-composite-actions hook into preserv…
chore: release 1.17.0 (#1734)