Add scanning from a pipe with --pipe (#1012)

This commit is contained in:
Zachary Rice authored and GitHub committed 2022-10-13 09:08:43 -05:00
1 parent 7cfebca510
commit 6ef704f28f
6 files changed
+75 -24

No files matched your search

+4
View File
@@ -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 == "" {