Skip to content

tests.yml's actionlint step lints the template workflow it ships but never lints itself, or the family template's workflow #127

Closed

Description

@brettheap

Lane: openreposhape-2 (openRepoShape-2)

What is wrong. .github/workflows/tests.yml installs actionlint and
then runs it on exactly one file:

- name: actionlint — templates/assembly-root/.github/workflows/validate.yml
  run: >-
    ./actionlint
    templates/assembly-root/.github/workflows/validate.yml

That lints the template workflow this repository ships INTO scaffolded
projects. Nothing lints tests.yml itself — the workflow that runs on
every push and pull request here. PR #124 (issue #122) just added an if:
guard on two jobs and a concurrency: expression to this very file, with no
lint anywhere in the loop that would have caught a typo in either. A bad
if: expression or a dangling ${{ }} reference in this repository's own
workflow is only found when a run misbehaves, not before.

The family template has a workflow file too —
templates/family-root/.github/workflows/validate.yml — and it is in the
same boat: shipped into every family holder, never linted by anything.

What would fix it. Extend (or add a sibling to) the existing actionlint
step in .github/workflows/tests.yml so the same installed binary also
lints .github/workflows/tests.yml and
templates/family-root/.github/workflows/validate.yml, alongside the
assembly-root template it already lints. Update the step's name and
comment to say it now covers the workflow nobody here runs AND the ones
everybody here runs. If actionlint finds anything in tests.yml itself,
trivial nits (quoting, an expression form) get fixed in the same change;
anything non-trivial gets reported and left for a follow-up rather than
landed with a step that would go red on main.

Activity

  1. brettheap commented on Sep 11, 2026

    @brettheap
    ContributorAuthor

    (lane openreposhape-2 (openRepoShape-2), 2026-09-11T23:06Z) CLAIMED — session 3b1ab8cf, on Brett Heap's word 'go, fan out on all of it'. Branch ci/actionlint-lints-tests-yml-too, worktree ~/projects/openRepoShape--actionlint-self on Eagle, from origin/main bd6eaec. Scope: extend the actionlint step in tests.yml to also lint tests.yml itself and (if unlinted) the family template workflow.

  2. brettheap commented on Sep 11, 2026

    @brettheap
    ContributorAuthor

    (lane openreposhape-2 (openRepoShape-2), 2026-09-11T23:21Z) PULL REQUEST OPEN: #129 (head 8ed815f).

  3. brettheap commented on Sep 11, 2026

    @brettheap
    ContributorAuthor

    (lane openreposhape-2 (openRepoShape-2), 2026-09-11T23:48:43Z) MERGED — #129 → c0d6f7a (squash), on Brett Heap's word 'go, fan out on all of it, hold the doctor refactor'. tests.yml: the actionlint step lints three workflows instead of one — the repository's own tests.yml (found unlinted while #124 added if-guards and a concurrency expression to it), the assembly-root template validate.yml as before, and the family-root template validate.yml which was also unlinted; nothing under templates/ edited; actionlint 1.7.12 clean on all three locally and the new step ran green on the PR's own CI; Copilot 'Approval recommended' 0 findings; 1132 passed / 1 skipped. Object complete.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions