mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2026-06-05 00:26:53 +02:00
fix: expand file extension patterns for tofu hooks
Update file matching patterns in .pre-commit-hooks.yaml to support .tofu, .tfvars, and other relevant extensions for OpenTofu workflows. Also clarify log message in tofu_wrapper_module_for_each.sh for missing files. Signed-off-by: Michael Rosenfeld <michael@rosesecurity.com>
This commit is contained in:
parent
ba56661031
commit
451aaa59b5
2 changed files with 10 additions and 10 deletions
|
|
@ -315,7 +315,7 @@ EOF
|
|||
all_tf_content=$(find "${full_module_dir}" -regex '.*\.(tf|tofu)' -maxdepth 1 -type f -exec cat {} +)
|
||||
|
||||
if [[ ! $all_tf_content ]]; then
|
||||
common::colorify "yellow" "Skipping ${full_module_dir} because there are no *.(tf|tofu) files."
|
||||
common::colorify "yellow" "Skipping ${full_module_dir} because there are no .tf or .tofu files."
|
||||
continue
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue