Skip to content

Commit

Permalink
added name back in extradata (trufflesecurity#3569)
Browse files Browse the repository at this point in the history
  • Loading branch information
kashifkhan0771 authored Nov 7, 2024
1 parent 034ca35 commit e6e1642
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/custom_detectors/custom_detectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit e6e1642

Please sign in to comment.