Repository navigation
chore(testing): adopt actionlint for authored and rendered workflows - #1001
Merged
Merged
Conversation
Scaffold each delivery mode (devcontainer, direnv, bare, both) into a temp workspace via the real init-workspace.sh and run actionlint over the rendered .github/workflows/ tree, plus the standalone smoke-test workflow. RED until actionlint lands in the toolchain. Refs: #995
actionlint joins devTools (dev-shell, image, vigos.packages home module) so GitHub Actions workflows can be linted from the toolchain SSoT. Refs: #995
Devkit-only, runner-only: actionlint auto-discovers and lints this repo's own .github/workflows/ with its bundled shellcheck disabled (-shellcheck=). The per-mode rendered consumer templates are validated in tests/bats instead, since linting them in-place resolves reusable-workflow siblings against the wrong root. Defined once in nix/hooks.nix and rendered into .pre-commit-config.yaml. Refs: #995
This was referenced Jul 13, 2026
c-vigo
added a commit
that referenced
this pull request
Jul 13, 2026
…997) One release choreography, mode-aware toolchain provisioning: resolve-toolchain + setup-devkit-toolchain composites (ADR Option A), single mode-aware ci.yml, all release/automation workflows container-free in direnv/bare, opt-in .devcontainer/ prune, vig-utils host-side, actionlint. Sub-PRs: #998 #999 #1000 #1001 #1002 #1005 #1006 #1007. Refs: #988
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.
Summary
Adopts
actionlint(nixpkgs1.7.12) so GitHub Actions workflows — both thedevkit's own authored workflows and the per-mode rendered scaffold output —
are validated semantically, not just yamllint/grep-checked. Closes a gap where a
broken
needs/outputswiring or invalid expression in a rendered workflowwould ship silently and only fail in a consumer repo.
Part of #988. Supports #991/#994 verification.
What changed
nix/devtools.nix):actionlintadded to the vigOS toolchainSSoT — available in the dev-shell, the Nix-built image, and the
vigos.packageshome module (so consumers get the binary too).nix/hooks.nix→ rendered into.pre-commit-config.yaml):an
actionlinthook that auto-discovers and lints the devkit's own.github/workflows/, with the bundled shellcheck disabled (-shellcheck=).tests/bats/init-workspace.bats): five new tests that scaffold eachdelivery mode (devcontainer / direnv / bare / both) into a temp workspace via
the real
init-workspace.sh,git initit, and runactionlintover therendered
.github/workflows/tree asserting exit 0 — plus the standalonesmoke-test workflow template.
Addedentry (theactionlintbinary ships to consumers viathe toolchain SSoT).
Hook-placement decision
Devkit-only, runner-only. The hook lives in the devkit's own
.pre-commit-config.yaml(not scaffolded to consumers, not in the flake sandboxgate). It lints the devkit's own workflows only.
The per-mode consumer templates are not linted in-place by the hook and are
covered by the bats suite instead. This is forced, not just preferred: the
reusable release workflows reference
./.github/workflows/release-core.yml(etc.), which actionlint resolves against the project root. Linting the
templates where they live (
assets/workspace/.github/workflows/) resolves thosesiblings against the devkit repo root — where those files do not exist —
producing false "reusable workflow not found" errors. Validating the rendered
tree (where the siblings sit together) is the faithful check, so that is what the
bats fixtures do. Consumers therefore get no actionlint hook; their rendered
workflows are guaranteed valid by the devkit's bats suite.
actionlint sweep triage
Ran actionlint over every target tree. Findings:
run:(SC2086/2129/2016/2295/2207/2076/2015/2034 — all info/style/warning)-shellcheck=disables actionlint's bundled shellcheck. All are pre-existing info/style/warning noise in establishedrun:blocks; the standalone shellcheck hook already covers.shscripts. Hardeningrun:blocks + re-enabling is a deferred follow-up.secrets.*"not defined in object type"assets/workspacerelease-core.yml,release-publish.yml-ignore(scoped to the exact inherited secret names). The caller passes them withsecrets: inherit, which actionlint cannot see statically — a known false positive, not a defect.workflow-call"could not read reusable workflow file"assets/workspacerelease.ymlNo workflows were rewritten. No
.github/actionlint.yamlwas added (the onlyreal false positive — inherited secrets — is scoped narrowly in the bats
invocation; a shipped config would belong with a future consumer-facing
actionlint hook, out of scope here).
CI wiring
No CI edit needed. The
project-checkslane (.github/actions/test-project)already runs
prek run --all-files(covers the new hook) andbats tests/bats/(covers the rendered-tree fixtures).
Evidence (local — the epic branch has no automated CI on sub-PRs)
actionlint --versionfrom the dev-shell:1.7.12prek run --all-files: greenbats tests/bats/init-workspace.bats: 132/132 pass (5 new Adopt actionlint for authored and per-mode rendered workflow templates #995 tests)pytest tests/test_flake_hooks.py(hook drift gate): 13 passed — render matches committed configRefs: #995