Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Custom detector name (#1400)
Zachary Rice4938d67e66e6
diff --git a/pkg/custom_detectors/custom_detectors.go b/pkg/custom_detectors/custom_detectors.goindex 09b7e928c..c6980a2ec 100644--- a/pkg/custom_detectors/custom_detectors.go+++ b/pkg/custom_detectors/custom_detectors.go@@ -99,6 +99,10 @@ func (c *customRegexWebhook) FromData(ctx context.Context, verify bool, data []bclose(resultsCh)for result := range resultsCh {+ // NOTE: I don't believe this is being set anywhere else, hence the map assignment.+ result.ExtraData = map[string]string{+ "name": c.GetName(),+ }results = append(results, result)}