-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Git source should fail if directory doesn't exists #3005
Comments
It seems that trufflehog/pkg/sources/git/git.go Lines 324 to 330 in de19a39
trufflehog/pkg/sources/git/git.go Line 1272 in de19a39
trufflehog/pkg/sources/source_manager.go Lines 369 to 372 in de19a39
Confusingly, trufflehog/pkg/sources/source_manager.go Line 286 in de19a39
|
I have raised a PR for this @rgmz , please check |
#3612 partially addresses this issue by logging the non-fatal errors produced during a scan. The directory not existing should probably be a fatal error though.
|
Please review the Community Note before submitting
TruffleHog Version
HEAD
Description
When using TruffleHog with a
file://
uri, the scan will complete with a 0 exit code even if the directory doesn't exist.The text was updated successfully, but these errors were encountered: