Skip to content

Commit 3fb9c6e

Browse files
committed
Fix tflint Docker hook to use --chdir argument
1 parent a6faf75 commit 3fb9c6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@
207207
require_serial: true
208208
entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest
209209
language: docker_image
210-
args: [tflint]
210+
args: [tflint, --chdir=.]
211+
pass_filenames: false
211212
files: \.(tf|tofu|tfvars)$
212213
exclude: \.terraform/.*$
213214

0 commit comments

Comments
 (0)