trufflehog icon indicating copy to clipboard operation
trufflehog copied to clipboard

Missing necessary step for adding a new detector

Open jonandersenverkada opened this issue 3 years ago • 1 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

TruffleHog Version

trufflehog dev

Trace Output

N/A

Expected Behavior

Following the steps in Adding_Detectors_external.md allows you to build and run your new detector.

Actual Behavior

There is a missing step, required for the new detector to build. I didn't create a PR for this because I don't know if make protos should do this or if it should be a manual documented step.

Steps to Reproduce

Follow the steps in Adding_Detectors_external.md

The new detector will not be built.

The missing step is to add "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mydetector" and "mydetector.Scanner{}," to pkg/engine/defaults.go. Without this import the new detector isn't even built.

Environment

  • OS: Mac OS
  • Version 11.6 (Big Sur)

jonandersenverkada avatar Aug 04 '22 19:08 jonandersenverkada

This is a manual step. Feel free to make a PR for it.

dustin-decker avatar Aug 08 '22 23:08 dustin-decker

Closing this for now

dxa4481 avatar Nov 23 '22 18:11 dxa4481

This hasn't been implemented yet! Best to keep it open.

pulkitanz avatar Dec 05 '22 13:12 pulkitanz