Skip to content

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

Done

Description

@dan-petty

Problem

The lint of GitHub Actions workflows and shell scripts is not shared. Each repository holds its own copy, a part of it, or none.

State of the default branches on 2026-11-30:

  • dan-petty/github-workflows: the jobs actions and shell and the zizmor step of the job yaml in .github/workflows/ci.yml.
  • dan-petty/infra: the same jobs in its own .github/workflows/ci.yml.
  • dan-petty/vibes: a step downloads actionlint with curl. It does not run zizmor.
  • dan-petty/devcontainer-features: shellcheck only.
  • dan-petty/homelab: shellcheck through make shellcheck. No actionlint and no zizmor.
  • dan-petty/dreamscaper, dan-petty/dotfiles and one private website repository: no workflow lint.

Change

Add the reusable workflow .github/workflows/lint.yml (on: workflow_call).

  • Input runs-on (string, default empty). Empty selects ubuntu-26.04.
  • One job lint with the name Lint, a timeout of 10 minutes and the permission contents: read.
  • The job checks out the caller, and the mise.toml and mise.lock of the commit of the workflow. It installs actionlint, shellcheck and zizmor from that lock file.
  • It runs actionlint, shellcheck on each tracked *.sh file, and zizmor --offline .github/.
  • ci.yml of this repository calls it with the job workflows (name Workflows).
  • Move the zizmor pin from pyproject.toml and uv.lock to mise.toml and mise.lock.

The old jobs of ci.yml stay in this item. A later item deletes them.

Existing tool considered

No open tool that we found gives one reusable lint job for these repositories, which include a self-hosted gVisor runner with no Docker.

  • super-linter v9.0.0 runs the three linters, but it is a Docker container action. A self-hosted runner needs Docker for such an action. The runner scale set runner-homelab sets no container mode. It also pins the linters by its image, not by mise.lock.
  • MegaLinter v10.2.0 and reviewdog/action-actionlint v1.84.1 are also Docker container actions.
  • zizmorcore/zizmor-action v0.9.2 runs zizmor only.
  • raven-actions/actionlint v2.2.0 runs actionlint (with shellcheck on run steps) only.
  • trunk-io/trunk-action runs the Trunk CLI, which is closed source, and each repository holds its own tool pins.

Cost to build: approximately 60 lines in the form of the jobs of ci.yml and of pr-title.yml, approximately 40,000 tokens and 1 hour.

Done when

  • A pull request of this repository shows the check Workflows / Lint, and it passes.
  • A commit with a shellcheck error makes Workflows / Lint fail.
  • mise exec -- zizmor --offline .github/ runs the zizmor of mise.lock.
  • README.md tells a caller how to call the workflow, with the permission that the caller must give.

Source

Source: https://github.com/dan-petty/github-workflows/blob/019dbfbada23e5a595780b97cdf7d2dee5a64496/.github/workflows/ci.yml

Activity

  1. added
    type/feature
    status/new
    value/medium
    effort/low
    source/agent
    scope/ci
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 30, 2026
  4. removed
    status/in-progress
    owner/agent
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/cisource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions