We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The terraform_tfsec hook always runs on all Terraform files, even though none of them were modified or staged.
terraform_tfsec
I would expect the hook to only run if I explicitly use pre-commit run --all-files or if there were any Terraform files modified and staged.
pre-commit run --all-files
What I did to produce the bug:
$ touch test.py $ git add test.py $ pre-commit run
My .pre-commit-config.yaml contains:
.pre-commit-config.yaml
repos: - repo: https://github.com/antonbabenko/pre-commit-terraform rev: v1.83.2 hooks: - id: terraform_tfsec
uname -a
systeminfo | Select-String "^OS"
Linux Yggdrasil 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
pre-commit 3.4.0
The text was updated successfully, but these errors were encountered:
This issue has been resolved in version 1.83.3 🎉
Sorry, something went wrong.
MaxymVlasov
Successfully merging a pull request may close this issue.
Describe the bug
The
terraform_tfsec
hook always runs on all Terraform files, even though none of them were modified or staged.I would expect the hook to only run if I explicitly use
pre-commit run --all-files
or if there were any Terraform files modified and staged.How can we reproduce it?
What I did to produce the bug:
My
.pre-commit-config.yaml
contains:Environment information
uname -a
and/orsysteminfo | Select-String "^OS"
output:Linux Yggdrasil 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
.pre-commit-config.yaml
:file content
The text was updated successfully, but these errors were encountered: