Configure Hadolint in a single location for both hooks and CI

This commit is contained in:
Trenton Holmes 2022-07-19 13:54:33 -07:00
parent daad634894
commit 329a317fdf
3 changed files with 9 additions and 10 deletions

View File

@ -124,8 +124,6 @@ jobs:
name: Checkout
uses: actions/checkout@v3
-
uses: hadolint/hadolint-action@v2.0.0
uses: hadolint/hadolint-action@v2.0
with:
failure-threshold: warning
dockerfile: ${{ matrix.dockerfile }}
ignore: DL3008,DL3013,DL3003

8
.hadolint.yml Normal file
View File

@ -0,0 +1,8 @@
failure-threshold: warning
ignored:
# https://github.com/hadolint/hadolint/wiki/DL3008
- DL3008
# https://github.com/hadolint/hadolint/wiki/DL3013
- DL3013
# https://github.com/hadolint/hadolint/wiki/DL3003
- DL3003

View File

@ -74,13 +74,6 @@ repos:
rev: v2.10.0
hooks:
- id: hadolint
args:
- --ignore
- DL3008 # https://github.com/hadolint/hadolint/wiki/DL3008 (should probably do this at some point)
- --ignore
- DL3013 # https://github.com/hadolint/hadolint/wiki/DL3013 (should probably do this too at some point)
- --ignore
- DL3003 # https://github.com/hadolint/hadolint/wiki/DL3003 (seems excessive to use WORKDIR so much)
# Shell script hooks
- repo: https://github.com/lovesegfault/beautysh
rev: v6.2.1