Please review the Community Note before submitting
TruffleHog Version
3.93.6
Trace Output
remote: panic: runtime error: index out of range [1] with length 1
remote:
remote: goroutine 1 [running]:
remote: github.com/trufflesecurity/trufflehog/v3/pkg/sources/git.CmdCheck()
remote: /home/runner/work/trufflehog/trufflehog/pkg/sources/git/cmd_check.go:33 +0x1f8
Expected Behavior
Scan git commit on pre-receive.sh script on gitlab.
Actual Behavior
It is unable to verify the git version that is being used.
Environment
- OS: Ubuntu (specifically gitlab container)
- Version: v18.9.1
Additional Context
References
Please note that the output of git --version on our server is:
git version 2.52.gaea8cc3
Per https://github.com/trufflesecurity/trufflehog/blob/main/pkg/sources/git/cmd_check.go#L28 I don't believe this will be able to allow for accurate checking of the verion.
Please review the Community Note before submitting
TruffleHog Version
3.93.6
Trace Output
Expected Behavior
Scan git commit on pre-receive.sh script on gitlab.
Actual Behavior
It is unable to verify the git version that is being used.
Environment
Additional Context
References
Please note that the output of
git --versionon our server is:Per https://github.com/trufflesecurity/trufflehog/blob/main/pkg/sources/git/cmd_check.go#L28 I don't believe this will be able to allow for accurate checking of the verion.