Checkmarx / 2ms

Too many secrets (2MS) helps people protect their secrets on any file or on systems like CMS, chats and git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git scans fail with "exec: "git": executable file not found in $PATH"

juegge opened this issue · comments

commented

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

commented

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.

@juegge Please verify with v2.5.0

commented

Hi @baruchiro,
it works with 2.5.0
Thanks