Then the hook terraform_trivy will complain /Users/xxxx/.cache/pre-commit/repo30dyuizv/hooks/terraform_trivy.sh: line 51: trivy: command not found.
This can be fixed by additionally installing trivy via brew. That means trivy is not included into the sandbox environment controlled by pre-commit hook.
When I run pre-commit hooks with
Then the hook
terraform_trivy
will complain/Users/xxxx/.cache/pre-commit/repo30dyuizv/hooks/terraform_trivy.sh: line 51: trivy: command not found
.This can be fixed by additionally installing trivy via brew. That means trivy is not included into the sandbox environment controlled by pre-commit hook.