Skip to content

Commit 37a320e

Browse files
authored
pre-commit(hadolint): add failure-threshold: "error" (#420)
1 parent 8f0a0da commit 37a320e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/linters/.hadolint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
failure-threshold: "error"

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ repos:
126126
description: Runs hadolint Docker image to lint Dockerfiles
127127
language: docker_image
128128
types: ['dockerfile']
129-
entry: ghcr.io/hadolint/hadolint:v2.10.0 hadolint
129+
entry: ghcr.io/hadolint/hadolint:v2.10.0 hadolint -c .github/linters/.hadolint.yaml
130130
files: ^Dockerfile$
131131
- id: shellcheck
132132
name: Lint Shell scripts

0 commit comments

Comments
 (0)