Repository navigation
ci: re-enable actionlint shellcheck integration and harden workflow run blocks - #1013
Merged
Merged
Conversation
Quote redirect targets and shell variables, group consecutive GITHUB_OUTPUT writes, quote pattern expansions, and drop a dead array parse across the devkit's own and the scaffolded template workflows so they pass actionlint's bundled shellcheck. Intentional patterns (literal Markdown backticks, whitelist substring matches, deliberate word-splitting) carry justified shellcheck disable directives. Refs: #1003
Drop the `-shellcheck=` opt-out from the devkit's actionlint pre-commit hook (nix/hooks.nix + the drift-gated .pre-commit-config.yaml) and from the bats fixtures that lint the per-mode scaffold output and the smoke-test template. The run blocks are now hardened, so the bundled shellcheck pass is clean. The inherited-secrets `-ignore` regex stays; that is a separate, legitimate suppression. Refs: #1003
c-vigo
marked this pull request as ready for review
July 13, 2026 10:54
Contributor
Author
|
Reviewed: minimal quote-only hardening across devkit-own + template + smoke-test workflows; 10 suppressions each with inline justification (verified SC2076/SC2016/SC2207/SC2015 reasoning); the one logic change (dead ARCH_ARRAY parse + ARCHS env removal in release.yml Verify-manifests) verified genuinely unused; opt-outs fully removed (nix/hooks.nix, .pre-commit-config.yaml, both bats fixtures) with the gate provably active — full hook suite green with shellcheck on, 157/157 init-workspace bats (incl. rendered-tree actionlint per mode), 19/19 transform/hook pytest; CI 13 pass / 0 fail. Conflict surface with #1012 is one quoted variable in sync-issues.yml — trivial at merge. Ready for final review. |
2 tasks
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
Re-enables
actionlint's bundled shellcheck integration (removes the-shellcheck=opt-out) in the devkit's own pre-commit hook and the batsfixtures, and hardens every workflow
run:block — the devkit's own.github/workflows/, the per-mode scaffold templates underassets/workspace/, and the smoke-test template — until the shellcheck pass isclean. Follow-up to #995 (which deferred the 41 info/style/warning findings).
Every commit stays green: commit 1 hardens the run blocks (hook still opted
out); commit 2 removes the opt-outs with shellcheck now active and the gate
proving clean.
Findings and fixes
actionlintwith shellcheck over the devkit's own workflows surfaced the same41 findings #995 recorded, plus a handful in the rendered/template trees.
All are
SC2086quoting-style noise except the intentional patterns notedbelow. No correctness defects. Locations are
run:-block start lines.Devkit-own
.github/workflows/>> "$GITHUB_OUTPUT"writes into one{ ... } >> "$GITHUB_OUTPUT""$GITHUB_STEP_SUMMARY""$GITHUB_OUTPUT""$GITHUB_OUTPUT">> "$GITHUB_OUTPUT""$GITHUB_OUTPUT">> "$GITHUB_OUTPUT""$GITHUB_OUTPUT""$GITHUB_OUTPUT""$GITHUB_OUTPUT"&&/`ARCH_ARRAYparse + its now-unusedARCHS:env; quoted"$i"/"$RETRIES""$GITHUB_OUTPUT">> "$GITHUB_OUTPUT"(synced -> template)&&/`"$CACHE_ID"(minimal, coordinating with #996)Scaffold templates (
assets/workspace/.github/workflows/)>> "$GITHUB_OUTPUT"${tag#"${VERSION}"-rc}"$CACHE_ID"Smoke-test template
>> "${GITHUB_OUTPUT}"writesSuppressions (each carries an inline justification comment)
`CHANGELOG.md`backticks in the truncation-noteprintfare literal Markdown code spans, not command substitution.[[ " $VALID_ARCHS " =~ " $arch " ]]is a deliberate literal substring match against the space-padded whitelist, not a regex.UNIQUE_ARCHS=($(... | sort -u))deliberately word-splits the space-free arch tokens;mapfileis overkill.... && ... || { error; exit; }guard is meant to run the error branch whenever the combined scan-ok check fails, not an if-then-else.The inherited-secrets
-ignoreregex in the bats fixtures is retained — that isa separate, legitimate suppression (
secrets: inheritvalues actionlint cannotresolve statically).
Evidence
actionlint(shellcheck active) over the devkit's own workflows, all fourrendered mode trees (devcontainer/direnv/bare/both), and the smoke-test
template: 0 findings.
nix develop -c prek run --all-files: green (shellcheck active).nix develop -c bats tests/bats/init-workspace.bats: full file green (157 tests).uv run pytest tests/test_flake_hooks.py tests/test_transforms.py -q: green(hook-config drift gate + manifest transforms).
Refs: #1003