mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
fix(baseline): work with --redact (#1741)
This commit is contained in:
1 parent
cfdeb0d7e0
commit
b6cc71aa3a
3 files changed
+128
-38
No files matched your search
+1
-1
@@ -603,7 +603,7 @@ func (d *Detector) AddFinding(finding report.Finding) {
|
||||
}
|
||||
}
|
||||
|
||||
if d.baseline != nil && !IsNew(finding, d.baseline) {
|
||||
if d.baseline != nil && !IsNew(finding, d.Redact, d.baseline) {
|
||||
logger.Debug().
|
||||
Str("fingerprint", finding.Fingerprint).
|
||||
Msgf("skipping finding: baseline")
|
||||
|
||||
Reference in new issue
Block a user