Skip to content

chore(ci): add actionlint to the Lint job#308

Merged
FumingPower3925 merged 2 commits into
mainfrom
chore/ci-actionlint
May 30, 2026
Merged

chore(ci): add actionlint to the Lint job#308
FumingPower3925 merged 2 commits into
mainfrom
chore/ci-actionlint

Conversation

@FumingPower3925
Copy link
Copy Markdown
Contributor

Adds actionlint to the existing Lint job so this repo's own GitHub Actions YAML is sanity-checked on every PR — script-injection vectors, unknown runner labels, malformed shell, action input misuse. ~5s overhead, uses the same checkout + setup-go that already runs.

actionlint catches GitHub Actions YAML mistakes that golangci-lint can't:
script-injection vectors, unknown runner labels, malformed shell,
action input misuse. Runs on every PR / push as the final step on the
existing Lint job — same checkout + setup-go infrastructure, ~5s
overhead.
- ci.yml: quote the go-list \$pkgs expansion (SC2046). Word-splitting is
  intentional here — \`go test\` wants one package per arg — so split
  it onto its own line + suppress the lint with a targeted directive.
- drivers.yml: rename the unused \`i\` loop var to \`_\` (SC2034).

Caught immediately by adding actionlint+shellcheck to the Lint job —
exactly the kind of finding the integration is meant to surface.
@FumingPower3925 FumingPower3925 merged commit 55d8aa1 into main May 30, 2026
31 checks passed
@FumingPower3925 FumingPower3925 deleted the chore/ci-actionlint branch May 30, 2026 17:35
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