https://github.com/essentialkaos/hadolint-action
GitHub action for checking dockerfiles with Hadolint
https://github.com/essentialkaos/hadolint-action
github-action github-actions github-actions-docker
Last synced: 3 months ago
JSON representation
GitHub action for checking dockerfiles with Hadolint
- Host: GitHub
- URL: https://github.com/essentialkaos/hadolint-action
- Owner: essentialkaos
- License: apache-2.0
- Created: 2021-08-21T22:49:33.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-03T20:53:07.000Z (4 months ago)
- Last Synced: 2025-03-16T16:40:09.394Z (3 months ago)
- Topics: github-action, github-actions, github-actions-docker
- Homepage: https://kaos.sh/hadolint-action
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
Action for checking scripts with [Hadolint](https://github.com/hadolint/hadolint).
### Usage
Create file `.github/workflows/hadolint.yml`.
Add next code to it:
```yml
name: CIon:
push:
branches: [master, develop]
pull_request:
branches: [master]jobs:
Hadolint:
name: Hadolint
runs-on: ubuntu-lateststeps:
- name: Code checkout
uses: actions/checkout@v4- name: Check dockerfiles with Hadolint
uses: essentialkaos/hadolint-action@v1
with:
format: json
varbose: true
strict-labels: true
failure-threshold: warning
trusted-registry: repo.domain.com
files: alpine311.docker alpine312.docker```
| Option | Description | Value |
|--------|-------------|--------|
| `files` | List of dockerfiles to check | _Paths_ |
| `version` | Version of Hadolint | _Version in semver notation_ |
| `format` | The output format for the results | `tty`
`json`
`checkstyle`
`codeclimate`
`gitlab_codeclimate`
`codacy`
`sonarqube` |
| `varbose` | Enables verbose logging | _Boolean_ |
| `strict-labels` | Do not permit labels other than specified in label-schema | _Boolean_ |
| `failure-threshold` | Exit with failure code only when rules with a severity equal to or above given | `error`
`warning`
`info`
`style`
`ignore`
`none` |
| `trusted-registry` | A docker registry to allow to appear in FROM instructions | _String_ |### License
[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)