Skip to content

Find, verify, and analyze leaked credentials

added name back in extradata (#3569)

Kashif Khane6e16427c123
diff --git a/pkg/custom_detectors/custom_detectors.go b/pkg/custom_detectors/custom_detectors.go
index 7579324dc..96b72fa1d 100644
--- a/pkg/custom_detectors/custom_detectors.go
+++ b/pkg/custom_detectors/custom_detectors.go
@@ -102,6 +102,10 @@ func (c *CustomRegexWebhook) FromData(ctx context.Context, verify bool, data []b
close(resultsCh)
for result := range resultsCh {
+ if result.ExtraData != nil {
+ result.ExtraData["name"] = c.GetName()
+ }
+
results = append(results, result)
}