Open 0x736E opened 9 months ago
I'm experiencing this issue, too. I had previously pulled down repos and ran trufflehog against the filesystem, but am now pointing at the repo directly, and all of the previously found findings in .zip files are now no longer being found.
Is there a fix in the works?
Please review the Community Note before submitting
TruffleHog Version
v3.63.7 and later
Trace Output
N/A
Expected Behavior
TruffleHog should treat all data sources equally; unless the data source does not intrinsicly support a given feature or behaviour, then the default behaviour should be common amongst all data sources.
Actual Behavior
TruffleHog treats data sources differently when scanning for file archives. When scanning, the 'archive' handler may or may not be enabled, depending upon the data source. This results in secrets being found in file archives for some data sources but not others. There is also no mechanism for the user to enable or disable this behaviour.
The default behaviour as of v3.63.7 is as follows:
When we compare findings when scanned with the 'filesystem' and 'git' data sources we can see that the filesystem datasource scans and produces findings for the 10 secrets located in the zip file, however in the results from the scan which used the git data source we do not see this:
Steps to Reproduce
Environment
Additional Context
Root cause analysis is located here:
References
2505