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
- required: false
- default: /github/workspace
version
The version of hadolint to be used
- required: false
- default: latest
Examples
As a step in pre-existing job.
- uses: actions/checkout@master
- … other steps
- uses: dogmatic69/actions@7728686b
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