You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-02-05T08:28:09-05:00 info-1 trufflehog binary file not handled, chunking raw {"path": "example.PNG"}
2024-02-05T08:28:09-05:00 info-1 trufflehog binary file not handled, chunking raw {"path": "example2.PNG"}
Expected Behavior
TruffleHog should ignore .png files.
Actual Behavior
TruffleHog scans PNG files if they have an uppercase extension (.PNG). The function SkipFile should use a case-insensitive comparison like string.EqualFold.
Please review the Community Note before submitting
TruffleHog Version
v3.67.1
Trace Output
Expected Behavior
TruffleHog should ignore
.png
files.Actual Behavior
TruffleHog scans PNG files if they have an uppercase extension (
.PNG
). The functionSkipFile
should use a case-insensitive comparison likestring.EqualFold
.trufflehog/pkg/common/vars.go
Lines 89 to 96 in a22874f
Steps to Reproduce
.png
, or any other ignored file type, to uppercase.Environment
N/A
Additional Context
N/A
References
N/A
The text was updated successfully, but these errors were encountered: