Skip to content

feat(ci): add the reusable workflow lint.yml - #23

Merged
dan-petty merged 6 commits into
mainfrom
feat/21-reusable-lint-workflow
Nov 30, 2026
Merged

dan-petty merged 6 commits into
mainfrom
feat/21-reusable-lint-workflow

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The new reusable workflow lint.yml gives a repository one job, Lint, that runs actionlint, shellcheck on each tracked *.sh file and zizmor on .github/. The linters come from the mise.lock of the called commit, so a caller gets the versions of its tag. ci.yml calls it with the job workflows and the grant contents: read. The zizmor pin moves from pyproject.toml to mise.toml. The old lint jobs stay.

Existing tool: super-linter v9.0.0 runs the same three linters, but it is a container action that runner-homelab cannot run (k8s/arc-runners/values.yaml of homelab: no Docker, gVisor, no privilege escalation), and its image pins the linters, not mise.lock. zizmorcore/zizmor-action covers only zizmor. Build cost: approximately 60 lines of YAML in the form of ci.yml and pr-title.yml, approximately 40,000 tokens and 1 hour.

Closes #21
Change: openspec/changes/archive/2026-11-30-21-reusable-lint-workflow/

The new workflow lints the workflows and shell scripts of its caller
with actionlint, shellcheck and zizmor, at the versions of the mise.lock
of its own commit. ci.yml calls it with the job workflows. The zizmor pin
moves from pyproject.toml to mise.toml.
@dan-petty dan-petty added type/feature Type feature: a new function scope/ci GitHub Actions workflows and pre-commit hooks labels Nov 30, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 30, 2026 16:23
@dan-petty
dan-petty merged commit d35eb73 into main Nov 30, 2026
14 checks passed
@dan-petty
dan-petty deleted the feat/21-reusable-lint-workflow branch November 30, 2026 16:24
dan-petty-release Bot added a commit that referenced this pull request Nov 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.3.0](v0.2.0...v0.3.0)
(2026-11-30)


### Features

* **ci:** add the reusable workflow lint.yml
([#23](#23))
([d35eb73](d35eb73)),
closes [#21](#21)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
@dan-petty

Copy link
Copy Markdown
Owner Author

Live proof of lint.yml:

  • Head 90abb2e: each check passed. Workflows / Lint passed on ubuntu-26.04 (run 46459413373).
  • Commit a852ac2, a shell script with the finding SC2086: Workflows / Lint failed (run 46459900822). A revert removed the script.
  • Commit 4eef739, no grant on the job workflows: the CI run ended with startup_failure (run 46460333240). actionlint passed on the same files. A revert restored the grant.
  • Head e145d52, the merged head: 14 of 14 checks passed.
  • main at deb3f0d (release v0.3.0): Workflows / Lint passed (run 46461702634).

A push of 84c499e came after the merge and made the branch again. Its tree differed from the merged tree in one sentence of README.md. The branch is deleted, and #8 holds a note for that sentence.

Not proven: a run on a self-hosted runner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows and pre-commit hooks type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ci): add the reusable workflow lint.yml

1 participant