jbergstroem/Hadolint Github Action
A stable, well-tested, highly configurable way of checking your Dockerfile(s) with Hadolint
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| dockerfile | Path to Dockerfile(s). Accepts shell expansions (`**/Dockerfile`) | yes | ./Dockerfile |
| config_file | Path to optional config (hadolint defaults to read `./hadolint.yml` if it exists) | no | — |
| error_level | Fail CI based on hadolint output (`-1` never, `0` error, `1` warning, `2` info/style) | no | 0 |
| annotate | Annotate code inline in the github PR viewer (`true`/`false`) | yes | true |
| output_format | Output format (choose between `checkstyle`, `codeclimate`, `gitlab_codeclimate`, `json` or `tty`) | no | — |
| hadolint_path | Absolute path to hadolint binary. Left unset means it can be found in `$PATH` | no | — |
| version | Use a specific version of Hadolint | yes | 2.14.0 |
| advanced_security | Run hadolint with SARIF output and upload to GitHub Advanced Security (`true`/`false`) | no | false |
Outputs
| name | description |
|---|---|
| hadolint_output | Optional output from Hadolint, controlled with `output_format` |
| hadolint_version | Hadolint version in use |
| hadolint_gh_action_version | hadolint-gh-action version in use |