Skip to content

Docker Security Overhaul: Add a linter step to the container.yaml workflow #1460

Closed

Description

@josecelano
$ docker run --rm -i hadolint/hadolint < ./Containerfile 

Unable to find image 'hadolint/hadolint:latest' locally
latest: Pulling from hadolint/hadolint
db4123164570: Pull complete 
Digest: sha256:fff226bdf9ebcc08db47fb90ee144dd770120b35c2b1cbbb46e932a650cfe232
Status: Downloaded newer image for hadolint/hadolint:latest
-:8 DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
-:15 DL3008 warning: Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`
-:15 DL3009 info: Delete the apt-get lists after installing something
-:15 DL3015 info: Avoid additional packages by specifying `--no-install-recommends`
-:16 DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
-:72 DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.
-:75 DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
-:75 SC2046 warning: Quote this to prevent word splitting.
-:86 DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.
-:89 DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
-:89 SC2046 warning: Quote this to prevent word splitting.

Activity

  1. added
    - Admin -
    Security
    on Apr 14, 2025
  2. added theissue type on Apr 14, 2025
  3. added a commit that references this issue on Jun 10, 2026
  4. self-assigned this
    on Jul 23, 2026
  5. added a commit that references this issue on Jul 24, 2026
  6. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

- Admin -Security

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions