eth0izzle / shhgit

Ah shhgit! Find secrets in your code. Secrets detection for your GitHub, GitLab and Bitbucket repositories.
MIT License
3.84k stars 481 forks source link

add blacklisted_regex to shhgit #70

Open marcelo321 opened 4 years ago

marcelo321 commented 4 years ago

As far as I know shhgit supports:

blacklisted_strings, blacklisted_extensions, blacklisted_paths and blacklisted_entropy_extensions.

Would it be possible to add blacklisted_regex so we can properly discard things we don't want? I can do it with grep on the output, but there are side cases, like when there is more than 1 match inside the same file, that one might match the regex (being a false positive) and will also discard the valid finding.

eth0izzle commented 3 years ago

Hey @marcelo321. That's a great idea. I don't have to time to work on this myself but feel free to submit a PR and I will gladly merge in.