git scans fail with "exec: "git": executable file not found in $PATH"
juegge opened this issue · comments
This is probably an issue of documentation. However, when simply running the command
docker run -v /path/to/my/repo checkmarx/2ms git /repo the scan immediately fails with
17:12:47 INF Git plugin started
17:12:47 FTL error while scanning git repository: exec: "git": executable file not found in $PATH
Any idea why?
Thanks
I will check it.
It should work, we are testing it every PullRequest
https://github.com/Checkmarx/2ms/blob/master/.github/workflows/pr-validation.yml#L42
Hi,
it seems that the RUN apk add --no-cache git=2.40.1-r0. command is missing the vesrion 2.4.0 of the DOCKERFILE
compare this: https://github.com/Checkmarx/2ms/blob/v2.4.0/Dockerfile
to this: https://github.com/Checkmarx/2ms/blob/master/Dockerfile
the 2.4.0 is what is on docker hub..... git was not installed and hence it fails
@juegge You're right, it was fixed just after the v2.4.0 was released.
I will release another version now.
Hi @baruchiro,
it works with 2.5.0
Thanks