Skip to the content.

Dockerfile Linter [docker action]

A smarter Dockerfile linter that helps you build best practice Docker images. The linter is parsing the Dockerfile into an AST and performs rules on top of the AST. It is standing on the shoulders of ShellCheck to lint the Bash code inside RUN instructions.

Adapted from hadolint/hadolint

The latest version available for this action is 7728686b. It was last updated on Fri Feb 27 2026.

Inputs

path

Path to search for Dockerfiles that will be scanned

version

The version of hadolint to be used

Examples

As a step in pre-existing job.

This simple job example has the bare minimum required to run.

dockerfile-linter: name: Dockerfile Linter runs-on: ubuntu-latest steps: - uses: actions/checkout@master - uses: dogmatic69/actions@7728686b

This example has all possible inputs, with dummy data.

dockerfile-linter: name: Dockerfile Linter runs-on: ubuntu-latest steps: - uses: actions/checkout@master - uses: dogmatic69/actions@7728686b with: path: foobar version: foobar