Skip to content

Commit 02af9cc

Browse files
authored
Merge pull request #39 from gab-arrobo/gha-hadolint
Add GHA for `hadolint`
2 parents 8d71646 + 71eb55b commit 02af9cc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@ jobs:
3232
- name: Build Docker image
3333
run: make docker-build
3434

35+
hadolint:
36+
name: hadolint
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- uses: actions/checkout@v4
41+
42+
- name: Dockerfile linter
43+
uses: hadolint/[email protected]
44+
# For now, ignoring:
45+
# DL3008 warning: Pin versions in apt get install (e.g., apt-get install <package>=<version>); and
46+
# DL3018 warning: Pin versions in apk add (e.g., apk add <package>=<version>)
47+
with:
48+
dockerfile: Dockerfile
49+
ignore: DL3008,DL3018
50+
3551
license-check:
3652
runs-on: ubuntu-latest
3753
steps:

0 commit comments

Comments
 (0)