Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Add Data member to ResultsMetadata struct. (#1358)
Tim Strazzerecbfbf5335ed0
diff --git a/pkg/detectors/detectors.go b/pkg/detectors/detectors.goindex 70c0ac9a8..0329cd6da 100644--- a/pkg/detectors/detectors.go+++ b/pkg/detectors/detectors.go@@ -68,6 +68,8 @@ type ResultWithMetadata struct {// SourceName is the name of the Source.SourceName stringResult+ // Data from the sources.Chunk which this result was emitted for+ Data []byte}// CopyMetadata returns a detector result with included metadata from the source chunk.@@ -78,6 +80,7 @@ func CopyMetadata(chunk *sources.Chunk, result Result) ResultWithMetadata {SourceType: chunk.SourceType,SourceName: chunk.SourceName,Result: result,+ Data: chunk.Data,}}