Skip to content

ci: lint the repository and date the image version label - #16

Merged
dan-petty merged 1 commit into
mainfrom
ci/6-lint-job
Nov 20, 2026
Merged

dan-petty merged 1 commit into
mainfrom
ci/6-lint-job

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Lint the files of the repository in CI, and give the version label the date tag.

  • The test job lints on linux/amd64. zizmor checks the workflows offline, from its official image at a pinned digest, before the build. hadolint checks each Dockerfile, actionlint the workflows, shellcheck test/*.sh, with the tools of the image that the job built. A finding fails the job.
  • Not the published image (refined design): each merge publishes a new digest, so a pin makes a Renovate bump cycle, and the lint would use old tools.
  • The push job's metadata step has only the date tag, so org.opencontainers.image.version is the date. Today latest has latest on the two platforms.
  • No size in the workflow comment; Dockerfile header wraps at 100.

Proof: each linter passes on this branch and fails on the issue's findings (DL3003, SC2086, zizmor unpinned-uses from the pinned image, unknown runner label).

Closes #6

- The test job lints on linux/amd64. zizmor checks the workflows
  offline, from its official image at a pinned digest, before the
  build. hadolint checks each Dockerfile, actionlint the workflows and
  shellcheck test/*.sh, with the tools of the image that the job
  built. A finding fails the job.
- The lint uses the image of the job, not the published image: a
  published digest in this repository makes an update cycle, because
  each merge publishes a new digest for Renovate to bump.
- The push job gives the metadata step only the date tag, so the
  label org.opencontainers.image.version of each platform image is the
  date, not latest.
- No image size in a workflow comment; the Dockerfile header wraps at
  100 characters. The README names the lint steps.

Closes #6
@dan-petty dan-petty added the type/infra Type infra: the build, CI, images or cluster label Nov 20, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 20, 2026 17:27
@dan-petty
dan-petty merged commit 5695e88 into main Nov 20, 2026
8 checks passed
@dan-petty
dan-petty deleted the ci/6-lint-job branch November 20, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: Add lint to CI and fix the image version label

1 participant