mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
Feat/ignore finding (#938)
This commit is contained in:
1 parent
e890a8e809
commit
3bace4c735
11 files changed
+713
-8
No files matched your search
@@ -26,6 +26,7 @@ func writeCsv(f []Finding, w io.WriteCloser) error {
|
||||
"Message",
|
||||
"Date",
|
||||
"Email",
|
||||
"Fingerprint",
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -44,6 +45,7 @@ func writeCsv(f []Finding, w io.WriteCloser) error {
|
||||
f.Message,
|
||||
f.Date,
|
||||
f.Email,
|
||||
f.Fingerprint,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -32,6 +32,7 @@ func TestWriteCSV(t *testing.T) {
|
||||
Author: "John Doe",
|
||||
Email: "johndoe@gmail.com",
|
||||
Date: "10-19-2003",
|
||||
Fingerprint: "fingerprint",
|
||||
},
|
||||
}},
|
||||
{
|
||||
|
||||
@@ -35,6 +35,9 @@ type Finding struct {
|
||||
|
||||
// Rule is the name of the rule that was matched
|
||||
RuleID string
|
||||
|
||||
// unique identifer
|
||||
Fingerprint string
|
||||
}
|
||||
|
||||
// Redact removes sensitive information from a finding.
|
||||
|
||||
Reference in new issue
Block a user