-
-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
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
terraform_checkov hook fails in Docker container since version v1.83.5 #633
Comments
Not reproduced in repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.87.1
hooks:
- id: terraform_checkov
args:
- --args=--quiet TAG=v1.87.1
docker run -e "USERID=$(id -u):$(id -g)" -v $(pwd):/lint -w /lint ghcr.io/antonbabenko/pre-commit-terraform:$TAG run -a => If something was wrong with previous versions, it was already fixed. |
Also, see
That's come not from the container. Looks like it tries to execute hook directly on the Ci instance And by
You can check is checkov included in image
|
btw, I can't reproduce your issue at all.
|
It could be related to arm64, but the binary's names were not changed. And I can't find anything about changes in the pip3 installation method https://github.com/bridgecrewio/checkov/releases/tag/2.4.48 And changes in code between v1.83.4..v1.83.5 not affect anything related to checkov or docker image at all So, currently, I think that there are no issues from our side. |
This issue has been resolved in version 1.88.1 🎉 |
Describe the bug
Hi,
I want use terraform_checkov pre-commit in a CI Pipeline.
The following config is used.
If I use version v1.83.4 the container output is as follows:
Since version v1.83.5 the output is as follows:
How can we reproduce it?
Execute the commands as shown above.
Environment information
OS: MacOs
Docker image tag/git commit:
Tools versions. Don't forget to specify right tag in command -
.pre-commit-config.yaml
:file content
The text was updated successfully, but these errors were encountered: