trufflehog
trufflehog copied to clipboard
Option to use custom regex with and without the already available detectors
Description
Currently trufflehog has it's share of over 600 detectors. Which is an exhaustive set in itself. Here, I am talking about scenarios where a developer/organisation would want to use this and add their custom regexes. Such as patterns of internal api keys or code bases etc.
Problem to be Addressed
Currently there's no option to add custom regexes, as far as I could check.
Description of the Preferred Solution
It would be good if we could pass in a file with regex pattern on each line.
I would love to work on this, if someone's not working on this already 😅
any update on this? I am trying something like this -
- name: TruffleHog Secret Scan uses: trufflesecurity/[email protected] with: path: ./ base: ${{ env.BRANCH }} head: HEAD args: "--only-verified --entropy=false --regex --rules=regexes.json"