mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
Quiet flag (#491)
* Adding a quiet option * better description Co-authored-by: Zach Rice <zrice@gitlab.com>
This commit is contained in:
1 parent
091ea81e68
commit
58d130c5f3
6 files changed
+39
-27
No files matched your search
+5
-6
@@ -95,9 +95,8 @@ func (cs *CommitScanner) Scan() (Report, error) {
|
||||
leak.Rule = rule.Description
|
||||
leak.Tags = strings.Join(rule.Tags, ", ")
|
||||
|
||||
if cs.opts.Verbose {
|
||||
leak.Log(cs.opts.Redact)
|
||||
}
|
||||
leak.Log(cs.opts)
|
||||
|
||||
scannerReport.Leaks = append(scannerReport.Leaks, leak)
|
||||
continue
|
||||
}
|
||||
@@ -137,9 +136,9 @@ func (cs *CommitScanner) Scan() (Report, error) {
|
||||
leak.LeakURL = leak.URL()
|
||||
leak.Rule = rule.Description
|
||||
leak.Tags = strings.Join(rule.Tags, ", ")
|
||||
if cs.opts.Verbose {
|
||||
leak.Log(cs.opts.Redact)
|
||||
}
|
||||
|
||||
leak.Log(cs.opts)
|
||||
|
||||
scannerReport.Leaks = append(scannerReport.Leaks, leak)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user