From 4a5e98c775be0f66815f9842b8e5104c5f8ca219 Mon Sep 17 00:00:00 2001 From: Tim Becker Date: Mon, 3 Jan 2022 12:02:13 -0500 Subject: [PATCH] fix(terragrunt_validate): Only run terragrunt_validate in valid directories (#191) The command fails if there is no terragrunt.hcl file in the directory. --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 95a000ffb..21eedd2d5 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -82,7 +82,7 @@ description: Validates all Terragrunt configuration files. entry: terragrunt_validate.sh language: script - files: (\.hcl)$ + files: (/terragrunt\.hcl)$ exclude: \.terraform\/.*$ - id: terraform_tfsec