mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04: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
+4
-4
@@ -86,7 +86,7 @@ func (us *UnstagedScanner) Scan() (Report, error) {
|
||||
leak.Rule = rule.Description
|
||||
leak.Tags = strings.Join(rule.Tags, ", ")
|
||||
if us.opts.Verbose {
|
||||
leak.Log(us.opts.Redact)
|
||||
leak.Log(us.opts)
|
||||
}
|
||||
scannerReport.Leaks = append(scannerReport.Leaks, leak)
|
||||
}
|
||||
@@ -198,9 +198,9 @@ func (us *UnstagedScanner) Scan() (Report, error) {
|
||||
leak.Repo = us.repoName
|
||||
leak.Rule = rule.Description
|
||||
leak.Tags = strings.Join(rule.Tags, ", ")
|
||||
if us.opts.Verbose {
|
||||
leak.Log(us.opts.Redact)
|
||||
}
|
||||
|
||||
leak.Log(us.opts)
|
||||
|
||||
scannerReport.Leaks = append(scannerReport.Leaks, leak)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user