Open syserr0r opened 1 week ago
For reference this appears to be caused by this upstream issue: https://github.com/rancher-sandbox/rancher-desktop/issues/3239
Thanks for flagging this @syserr0r, and for the details reproduction steps!
I was able to replicate the issue you reported, and found that there were two areas that needed adjusting. First of all, I replaced the --tty
argument with --interactive
, which allowed for the version to be returned when using Rancher Desktop. I added the same flag through to the is passed through in the runVersionCommand in src/utils.ts
.
Please could you let me know if this resolves it for you?
git switch fix-docker-version
npm install .
in the project rootcode .
)If so, I'll perform a bit more testing in some different environments, but should be able to get this pushed out asap.
Thanks again!
From there, you can open a repo with something supported by Checkov, and see if you get any errors.
Edit: In testing for myself, --tty/-t was not required, and actually created some noise
Python Version
n/a
Checkov Installation Method
docker
CheckovPrismaless Version
1.0.107
VSCode Version
1.93.1
Operating System
Windows 10
Description of the Bug
CheckovPrismaless fails to run the docker command - every file save where Checkov would be called results in a "Any troubles? We can help you figure out what happened" notification.
Enabling debugging and looking at the logs I can see CheckovPrismaless does not correctly get the version from docker, see the following output when calling the "Install or Update" command:
When CheckovPrismaless then tries to run it attempts to docker run with the previously found empty version string, resulting in trying to run the image
bridgecrew/checkov:
which is invalid, this can be seen as follows:Running the command manually in the WSL2 terminal we can see no output:
Re-running the command with the
-it
flags gives us the correct output:Running both commands on a linux VM with docker installed we can see they both output the version string (so no adverse affects to adding the
-it
flag and explains why it would work with docker):Steps to Reproduce