trufflehog
trufflehog copied to clipboard
Add `--include-paths` and `--exclude-paths` flags for Docker scan
Please review the Community Note before submitting
Description
It appears that the Docker source does not have flags for including or excluding paths. This is a useful feature to include.
https://github.com/trufflesecurity/trufflehog/blob/main/main.go#L86C70-L87
Preferred Solution
Add include/exclude flags for Docker, similar to how other sources work.
Additional Context
https://trufflehog-community.slack.com/archives/CK5PWLESK/p1702565959415379