Skip to content

Find, verify, and analyze leaked credentials

Custom detector name (#1400)

Zachary Rice4938d67e66e6
diff --git a/pkg/custom_detectors/custom_detectors.go b/pkg/custom_detectors/custom_detectors.go
index 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 []b
close(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)
}