Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Extract FP logic correctly at other call site #3476
Cody Rose3ab60865c84e
diff --git a/pkg/engine/engine.go b/pkg/engine/engine.goindex 4e0ee318d..1c79fe50f 100644--- a/pkg/engine/engine.go+++ b/pkg/engine/engine.go@@ -1035,7 +1035,7 @@ func (e *Engine) detectChunk(ctx context.Context, data detectableChunk) {ctx = context.WithValue(ctx, "detector", data.detector.Key.Loggable())- isFalsePositive := detectors.GetFalsePositiveCheck(data.detector)+ isFalsePositive := detectors.GetFalsePositiveCheck(data.detector.Detector)var matchCount int// To reduce the overhead of regex calls in the detector,