Skip to content

v0.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 16:34
· 9 commits to main since this release
v0.6.0
2fbe61d

What's Changed

Breaking changes

  • godolint takes hadolint's settings: .hadolint.yaml and its flags in the command, typed options in the SDK; the exit status follows the failure threshold (default info: style-only findings exit 0); DL3026 checks COPY --from and mounts by @closer-claudio in #181
  • The SDK no longer exports what only the module itself could use, and a rule that is turned off no longer runs by @closer-claudio in #201
  • Ignore pragmas apply from the line they are written on, as in hadolint: one above a blank line no longer silences, one above an empty comment or at the end of the file is no longer lost by @closer-claudio in #205
  • A shellcheck configuration file that will not open is refused by the SDK and the command by @closer-claudio in #230
  • WithShellcheck holds wherever it stands among the options, and once when given twice by @closer-claudio in #234
  • A RUN shellcheck did not scan is an error of the lint, where it passed in silence by @closer-claudio in #236

Changes

  • UPSTREAM.md: the row for #117 by @closer-claudio in #133
  • README: drop the roadmap and the stale status, state the limitations by @closer-claudio in #143
  • Rules follow hadolint master of 2026-10-19: DL4006 inherits SHELL across stages, DL3064 reports fewer non-secrets, any recursive rm cleans a cache (DL3009, DL3032, DL3040), DL3006 matches variables against stages by @closer-claudio in #174
  • The label rules (DL3049, DL3051 to DL3056, DL3058) carry their whole message, as hadolint documents it, instead of a fragment by @closer-claudio in #175
  • SDK: Rules and Rule describe every rule (code, severity, message) by @closer-claudio in #176
  • FROM images by digest, behind a registry with a port, or with a ${VAR:-default} are read correctly (DL3006, DL3007, DL3009, DL3045) by @closer-claudio in #179
  • Rules agree with hadolint's own tests: ONBUILD is read as hadolint composes it; DL3008, DL3009, DL3025, DL3060 and DL4001 fixed by @closer-claudio in #191
  • DL3049 follows a required label through build stages, and reports the stage's FROM line instead of line 0 by @closer-claudio in #192
  • DL3060 reports a yarn cache clean that comes before the install even when the cache is a mount by @closer-claudio in #194
  • A cache mount excuses a missing cleanup wherever hadolint finds it: under any home, and written dst= or destination= by @closer-claudio in #195
  • README: the command's output is described as it is: hadolint's JSON, and no other format by @closer-claudio in #196
  • godolint no longer crashes on two unaliased stages of one image with a HEALTHCHECK (DL3057 stack overflow) by @closer-claudio in #199
  • ENV and LABEL are read with their quotes gone: a PATH quoted in part no longer hides the pairs after it, and quoted keys and single quotes work by @closer-claudio in #202
  • RUN heredocs are linted: the body of RUN <<EOF is read as the script it is, and ONBUILD RUN <<EOF parses by @closer-claudio in #204
  • UPSTREAM.md lists eleven more places where godolint differs from hadolint on purpose by @closer-claudio in #209
  • DL3018 reports an unpinned package after apk add --repository=URL or --virtual=NAME by @closer-claudio in #210
  • The label rules report every bad label of a LABEL line, and the email type wants a bare address by @closer-claudio in #213
  • Violations are reported in order: by line, then by code, the same on every run by @closer-claudio in #206
  • DL3044 no longer reports an ENV that reuses a name from an ENV it reported by @closer-claudio in #215
  • DL3042 sees python -m pip install and pip3.x, and no longer reports a stage built on one that turned pip's cache off by @closer-claudio in #207
  • DL3010 and DL3020 take for an archive what ADD really unpacks: tar under gzip, bzip2, xz or zstd by @closer-claudio in #214
  • DL3033 and DL3041 give the same verdict on every run when two stages share an alias by @closer-claudio in #211
  • ENV and LABEL values are read under the Dockerfile's escape directive (# escape=`) by @closer-claudio in #222
  • DL4006 no longer asks for pipefail under SHELL ["cmd", "/S", "/C"] by @closer-claudio in #220
  • DL3026 no longer reports FROM ${NS:-myorg}/base as an untrusted registry by @closer-claudio in #223
  • DL3046 reports a long UID given as -mu 123456 or --uid 123456 by @closer-claudio in #217
  • A RUN's words are read as the shell gives them: what an expansion holds, escaped characters, brace groups by @closer-claudio in #216
  • DL3010 now reports an archive copied and unpacked in any stage, not in the last one only by @closer-claudio in #218
  • An export is a command of a RUN, and busybox wget is wget: DL3059 and the rules about a wrapped command read them by @closer-claudio in #221
  • DL3054 accepts every identifier of the SPDX License List (3.29.0), and reports a deprecated one or an expression by @closer-claudio in #225
  • DL3010 reads tar options: tar xf extracts, an x in a long option or in a name does not by @closer-claudio in #233
  • ONBUILD followed by a tab is read, as a build reads it, where the file was refused by @closer-claudio in #240
  • DL4006: a PowerShell under any of its names is not asked for pipefail by @closer-claudio in #239
  • Read a stage's name in lower case, as a build does by @closer-claudio in #242
  • A shellcheck finding in a heredoc is on its own line, and a pragma covers the RUN whole by @closer-claudio in #246
  • A shell named without its path (SHELL ["bash", "-c"]) no longer reports SC2239 by @closer-claudio in #248
  • A .hadolint.yaml with an unknown key or a format not written is obeyed, with a warning by @closer-claudio in #250
  • A shell run through env or busybox (SHELL ["env", "bash", "-c"]) no longer reports SC1008 by @closer-claudio in #249
  • A shell run through env after options in one word (env -iu X bash) no longer draws SC1008 by @closer-claudio in #251

Full Changelog: v0.5.1...v0.6.0