Skip to content

Find, verify, and analyze leaked credentials

chore: log false positive result as string (#3582)

Richard Gomezb715613cb315
diff --git a/pkg/detectors/falsepositives.go b/pkg/detectors/falsepositives.go
index 7f2ecd668..316d1d752 100644
--- a/pkg/detectors/falsepositives.go
+++ b/pkg/detectors/falsepositives.go
@@ -191,7 +191,7 @@ func FilterKnownFalsePositives(ctx context.Context, detector Detector, results [
}
if isFp, reason := isFalsePositive(result); isFp {
- ctx.Logger().V(4).Info("Skipping result: false positive", "result", result.Raw, "reason", reason)
+ ctx.Logger().V(4).Info("Skipping result: false positive", "result", string(result.Raw), "reason", reason)
continue
}
filteredResults = append(filteredResults, result)