Skip to content

Add Hadolint to CI lint pipeline - #2310

Merged
felladrin merged 3 commits into
mainfrom
fix-add-hadolint-to-ci
Aug 5, 2026
Merged

Add Hadolint to CI lint pipeline#2310
felladrin merged 3 commits into
mainfrom
fix-add-hadolint-to-ci

Conversation

@felladrin

@felladrin felladrin commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Problem

The repo lint gate runs Biome, TypeScript, knip, jscpd, and custom scripts — but none of them validate Dockerfiles. Dockerfile changes bypass all automated checks.

Fix

Add Hadolint to the CI pipeline with a .hadolint.yaml config that suppresses rules not applicable to our Dockerfile:

Rule Reason for suppression
DL3064 ARG USERNAME=node — not sensitive data
DL3008 Pinning apt package versions is impractical for this use case
SC2046 Intentional shell expansion for random key generation
DL3025 CMD uses shell form to run multiple background processes

Files changed

  • .hadolint.yaml — new config file
  • .github/workflows/ci.yml — add hadolint action step

Fixes #2285

Add Dockerfile validation to the CI pipeline using Hadolint.
Suppress rules that are not applicable to our Dockerfile:
- DL3064: ARG with commit SHA is not sensitive data
- DL3008: Pinning apt package versions is impractical
- SC2046: Intentional shell expansion for random key generation
- DL3025: CMD uses shell form to run multiple background processes

Fixes #2285
@felladrin
felladrin marked this pull request as ready for review August 5, 2026 02:52
@felladrin felladrin changed the title chore: add Hadolint to CI lint pipeline Add Hadolint to CI lint pipeline Aug 5, 2026
@felladrin
felladrin merged commit ed9e925 into main Aug 5, 2026
7 checks passed
@felladrin
felladrin deleted the fix-add-hadolint-to-ci branch August 5, 2026 02:52
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.

Add Hadolint or Dockerfile validation to CI lint pipeline

1 participant