mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
Merge pull request #158 from camaya/redact-only-secret-on-line
Change redacted behaviour on the line information
This commit is contained in:
1 file changed
+1
-1
@@ -669,7 +669,7 @@ func addLeak(leaks []Leak, line string, offender string, leakType string, diff g
|
|||||||
}
|
}
|
||||||
if opts.Redact {
|
if opts.Redact {
|
||||||
leak.Offender = "REDACTED"
|
leak.Offender = "REDACTED"
|
||||||
leak.Line = "REDACTED"
|
leak.Line = strings.Replace(line, offender, "REDACTED", -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
if opts.Verbose {
|
if opts.Verbose {
|
||||||
|
|||||||
Reference in new issue
Block a user