Repository navigation
ci: enforce actionlint (pinned, repo ShellCheck) and fix its 20 findings - #1278
Merged
Merged
Conversation
bpalermo
marked this pull request as ready for review
October 5, 2026 20:04
actionlint was run by hand and never enforced; v1.7.12 reported 20 findings: - [expression] x4, ci.yaml: `github.head_ref` (attacker-controlled branch text) interpolated into the bazel --build_metadata lines of test, race (x2) and netns. It now reaches them as $BRANCH_NAME from job-level env, as proxy.yml already does. - [shellcheck] SC2046 x14, e2e.yaml gateway-http/mesh-http: `$(img ...)` relied on word splitting to expand into --set flags. Built as an array instead; the argument list is byte-identical (checked by expanding both). - [shellcheck] SC2024 x1, e2e.yaml: `sudo cloud-provider-kind > log` — the redirect is meant to run as the runner user; targeted directive with that reason. - [shellcheck] SC2016 x1, publish-verify.yaml: literal Markdown backticks in a printf format. Ignored for that one file in .github/actionlint.yaml until the release-verification workflow's own PR carries a targeted directive. Enforcement: //bazel/actionlint pins actionlint 1.7.12 (official release archives per platform, sha256 from the release checksums, the //bazel/oras pattern) and runs it with the ShellCheck binary the lint aspects use. :actionlint_test (in //...) lints a copy of //:ci_definitions given a .git marker, because actionlint only checks a workflow's inputs against a local composite action's metadata inside a project (verified: an undefined input to ./.github/actions/setup-bazel fails it). A new unconditional `actionlint` job in ci.yaml runs it and is in the `ci` gate's needs. `make actionlint` runs it on the working tree. actionlint does not lint the composite actions' own `run:` blocks. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
force-pushed
the
upgrade/ci-actionlint
branch
from
October 5, 2026 22:05
88d33a5 to
1b8fadd
Compare
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.
Stack 2/3 (#1276 → #1278 → #1279).
Problem (confirmed)
actionlint was not enforced. Running
rhysd/actionlint:1.7.12(Docker) onmainatdf3a1136reported 20 findings. All are fixed here or scoped away:[expression]ci.yamltest,race×2,netnsgithub.head_ref(branch-name text from the PR author) was interpolated intobazel --build_metadata=BRANCH_NAME=…insiderun:. It now comes from job-levelenv: BRANCH_NAME, used as"$BRANCH_NAME", the same wayproxy.ymlalready did it.[shellcheck]SC2046e2e.yamlgateway-http,mesh-http$(img …)relied on word splitting to expand into--setflags. They are now built into an array and passed as"${images[@]}". I expanded the old and new forms side by side: the argument lists are identical.[shellcheck]SC2024e2e.yamlcloud-provider-kind# shellcheck disable=SC2024with that reason.[shellcheck]SC2016publish-verify.yamlissue stepprintfformat. The fix in the file itself (a targeted directive) is in #1277, becausepublish-verify.yamlis reviewed on its own. Until #1277 merges,.github/actionlint.yamlignores exactly this message for that one file. Drop the entry after #1277 lands.No blanket disables were used.
Enforcement
//bazel/actionlintpins actionlint 1.7.12. It uses the official release archives per platform, with the sha256 fromactionlint_1.7.12_checksums.txtinMODULE.bazel, following the//bazel/oraspattern. It runs actionlint with the ShellCheck binary the lint aspects use (@aspect_rules_lint//lint:shellcheck_bin, 0.11.0), so arun:block and ascripts/*.share held to the same version. Running with-pyflakes=keeps the result from depending on the host.:actionlint_testis part ofbazel test //.... It lints a copy of//:ci_definitionsthat has a.gitmarker. That marker matters: actionlint checks a workflow'swith:against a local composite action's inputs only inside a project. Without it, the sandboxed test silently skipped that check. I verified this with a deliberatebogus-input:passed to./.github/actions/setup-bazel: without the marker the test passed; with it the test fails.EXPECTEDwith it.ci.yamljobactionlintis unconditional, likeenvoy-api-parity, becausechangesexcludesproxy.ymlandproxy-release.ymlfromcontrol_plane. It is listed in thecigate'sneeds. It runs locally, with no RBE and no BuildBuddy key.make actionlint(bazel run //bazel/actionlint) lints the working tree. Added to the command lists inCLAUDE.mdandAGENTS.md.run:blocks inside.github/actions/*/action.yml. actionlint only lints workflow files; it checks composite inputs (above), not composite scripts.Proof
bazel test //bazel/actionlint:actionlint_test:main's workflows: the same 19 findings, plus the 1 now ignored;make actionlint:actionlint 1.7.12 (shellcheck 0.11.0): 10 workflow file(s)→clean.rhysd/actionlint:1.7.12on this branch: 0 findings.bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //bazel/... //scripts:all: clean.make format-check: clean.//e2e:kind_pin_testand//website:site_test: pass.e2e.yaml(the helm args). The nightly suite was dispatched on the top of the stack, ci: run the soak harness test in bazel test; drop dead warm-up targets; pin cloud-provider-kind #1279, which contains this commit: run 37367311728. Results will be added as a comment.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr