Skip to content

Commit 329a317

Browse files
committed
Configure Hadolint in a single location for both hooks and CI
1 parent daad634 commit 329a317

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.github/workflows/reusable-ci-backend.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ jobs:
124124
name: Checkout
125125
uses: actions/checkout@v3
126126
-
127-
uses: hadolint/[email protected].0
127+
uses: hadolint/[email protected]
128128
with:
129-
failure-threshold: warning
130129
dockerfile: ${{ matrix.dockerfile }}
131-
ignore: DL3008,DL3013,DL3003

.hadolint.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
failure-threshold: warning
2+
ignored:
3+
# https://github.com/hadolint/hadolint/wiki/DL3008
4+
- DL3008
5+
# https://github.com/hadolint/hadolint/wiki/DL3013
6+
- DL3013
7+
# https://github.com/hadolint/hadolint/wiki/DL3003
8+
- DL3003

.pre-commit-config.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,6 @@ repos:
7474
rev: v2.10.0
7575
hooks:
7676
- id: hadolint
77-
args:
78-
- --ignore
79-
- DL3008 # https://github.com/hadolint/hadolint/wiki/DL3008 (should probably do this at some point)
80-
- --ignore
81-
- DL3013 # https://github.com/hadolint/hadolint/wiki/DL3013 (should probably do this too at some point)
82-
- --ignore
83-
- DL3003 # https://github.com/hadolint/hadolint/wiki/DL3003 (seems excessive to use WORKDIR so much)
8477
# Shell script hooks
8578
- repo: https://github.com/lovesegfault/beautysh
8679
rev: v6.2.1

0 commit comments

Comments
 (0)