diff --git a/pkg/custom_detectors/custom_detectors.go b/pkg/custom_detectors/custom_detectors.go index 09b7e928c675..c6980a2ec708 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) }