mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
no leaks no report
This commit is contained in:
1 parent
91c39935e4
commit
095279d60c
1 file changed
+1
-1
@@ -97,7 +97,7 @@ func start(repos []RepoDesc, owner *Owner, opts *Options) {
|
|||||||
fmt.Printf("No Leaks detected for \x1b[35;2m%s\x1b[0m...\n\n", repo.url)
|
fmt.Printf("No Leaks detected for \x1b[35;2m%s\x1b[0m...\n\n", repo.url)
|
||||||
}
|
}
|
||||||
|
|
||||||
if opts.EnableJSON {
|
if opts.EnableJSON && len(report) != 0 {
|
||||||
outputGitLeaksReport(report, repo, opts)
|
outputGitLeaksReport(report, repo, opts)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user