mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
Add scanning from a pipe with --pipe (#1012)
This commit is contained in:
1 parent
7cfebca510
commit
6ef704f28f
6 files changed
+75
-24
No files matched your search
@@ -131,6 +131,10 @@ func printFinding(f report.Finding) {
|
||||
fmt.Printf("%-12s %s\n", "Secret:", secret)
|
||||
fmt.Printf("%-12s %s\n", "RuleID:", f.RuleID)
|
||||
fmt.Printf("%-12s %f\n", "Entropy:", f.Entropy)
|
||||
if f.File == "" {
|
||||
fmt.Println("")
|
||||
return
|
||||
}
|
||||
fmt.Printf("%-12s %s\n", "File:", f.File)
|
||||
fmt.Printf("%-12s %d\n", "Line:", f.StartLine)
|
||||
if f.Commit == "" {
|
||||
|
||||
Reference in new issue
Block a user