mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
Custom detector name (#1400)
* hacky way to add detector name to output * set name in custom detectors
This commit is contained in:
parent
e9cce62faf
commit
4938d67e66
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue