Trufflehog integration #11

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2025-09-01 15:17:05 +02:00
parent 76e8eee4dc
commit c84b2b0458
4 changed files with 191 additions and 73 deletions
+7
View File
@@ -34,6 +34,7 @@ type Settings struct {
MaxDistance int
HideAvatar bool
SpoofEmail bool
Trufflehog bool
// Internal
Client *github.Client
@@ -93,6 +94,12 @@ func GetSettings() (settings Settings) {
20,
"Maximum Levenshtein distance for matching usernames & emails (only for deep scan)",
)
flag.BoolVar(
&settings.Trufflehog,
"trufflehog",
true,
"Run trufflehog on cloned repositories (only for deep scan)",
)
flag.BoolVarP(&settings.Silent, "silent", "S", false, "Suppress all non-essential output")
flag.BoolVarP(&settings.SpoofEmail, "spoof-email", "", true, "Spoof email (only for email mode)")