Skip to content

ci(security): pin hadolint image by tag and digest - #84

Merged
modem7 merged 1 commit into
masterfrom
ci/pin-hadolint-digest
Aug 3, 2026
Merged

ci(security): pin hadolint image by tag and digest#84
modem7 merged 1 commit into
masterfrom
ci/pin-hadolint-digest

Conversation

@modem7

@modem7 modem7 commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #83, which was merged just before this fix landed.

  • `.github/workflows/lint.yml` referenced `hadolint/hadolint:latest-alpine`, a mutable tag — the image content can change underneath CI runs without any review, a supply-chain risk flagged by an automated commit security review.
  • Pins to `hadolint/hadolint:v2.15.1-alpine@sha256:a1d49ae1a4e83c1dbad26b8c1ad7588c8bd1e04f4866b34ad3cac50335198552` so the exact image is reproducible; bumping it now requires an explicit, reviewable change.

Test plan

  • Ran the pinned image locally against `Dockerfile`: passes (hadolint 2.15.1, exit 0)
  • Confirm the `hadolint` GitHub Actions check passes on this PR

Using the mutable 'latest-alpine' tag let the linter image change
underneath CI without review — a supply-chain risk. Pin to
v2.15.1-alpine@sha256:a1d49... so the exact image is reproducible
and any change requires an explicit bump.
@modem7
modem7 merged commit d445f67 into master Aug 3, 2026
5 checks passed
@modem7
modem7 deleted the ci/pin-hadolint-digest branch August 3, 2026 09:57
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