Skip to content

ci: lint workflows + composite actions (actionlint + shellcheck)#3

Merged
tarpanpathak merged 2 commits into
mainfrom
ci/add-actionlint
May 22, 2026
Merged

ci: lint workflows + composite actions (actionlint + shellcheck)#3
tarpanpathak merged 2 commits into
mainfrom
ci/add-actionlint

Conversation

@tarpanpathak
Copy link
Copy Markdown
Contributor

Summary

Adds the repo's own CI gate ahead of the v2 work:

  • actionlint over workflow files (release.yml, ci.yml) — also runs shellcheck on their run: blocks.
  • shellcheck over the composite actions' run: blocks (informational for now), which actionlint does not inspect. GitHub ${{ }} expressions are tokenized before linting; SC2154/SC2086 are excluded.
  • actions/checkout pinned to SHA; actionlint pinned to v1.7.12.

Once this is on main, I'll add lint as a required status check so the branch protection is fully wired (PRs can't merge unless this passes). The large v2 PR will then be linted by this gate before it merges.

Test plan

  • lint job green on this PR (it lints itself)

Add a CI workflow that runs actionlint over the repo's own workflow files
(release.yml, this ci.yml) and shellcheck over the composite actions' run:
blocks (which actionlint does not inspect). Pins actions/checkout to a SHA and
actionlint to v1.7.12. This is the gate we'll require on main once it lands.
@tarpanpathak tarpanpathak self-assigned this May 22, 2026
actionlint flagged the '[ -f ] && echo || true' one-liner (SC2015: A && B || C
is not if-then-else). Rewrite to an explicit if so the repo is lint-clean and
the new lint gate can be made required. Behavior is unchanged.
@tarpanpathak tarpanpathak merged commit 1c37de9 into main May 22, 2026
1 check passed
@tarpanpathak tarpanpathak deleted the ci/add-actionlint branch May 22, 2026 04:42
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