mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
1 parent
473d0d55a7
commit
e4b26aea4a
2 files changed
+5
-5
No files matched your search
@@ -132,11 +132,6 @@ func ruleContainFilePathRegex(rule config.Rule) bool {
|
||||
}
|
||||
|
||||
func sendLeak(offender string, line string, filename string, rule config.Rule, c *object.Commit, repo *Repo) {
|
||||
if repo.Manager.Opts.Redact {
|
||||
line = strings.ReplaceAll(line, offender, "REDACTED")
|
||||
offender = "REDACTED"
|
||||
}
|
||||
|
||||
repo.Manager.SendLeaks(manager.Leak{
|
||||
Line: line,
|
||||
Offender: offender,
|
||||
|
||||
Reference in new issue
Block a user