trufflesecurity / trufflehog

Find, verify, and analyze leaked credentials
https://trufflesecurity.com
GNU Affero General Public License v3.0
17.34k stars 1.72k forks source link

git --since-commit does not notify on invalid inputs #3394

Open JonZeolla opened 1 month ago

JonZeolla commented 1 month ago

TruffleHog Version

trufflehog 3.82.7

Trace Output

https://gist.github.com/JonZeolla/bb270c47471284baa5a9572f0c473234

Expected Behavior

I expect to be notified of an invalid --since-commit input

Actual Behavior

It finishes successfully with no chunks or bytes.

Steps to Reproduce

  1. cd to any git repository
  2. run trufflehog git --since-commit=THISISPROBABLYINVALID file://.

Environment

sahil9001 commented 1 month ago

@JonZeolla I have raised a PR, please check.