mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
Feat/add fingerprint no git (#952)
* no-git support fingerprint support * updating gitleaksignore w/ no-git false positives * fix test
This commit is contained in:
1 parent
6748a89bf4
commit
1b3f10cb79
4 files changed
+69
-1
No files matched your search
@@ -30,7 +30,6 @@ func augmentGitFinding(finding report.Finding, textFragment *gitdiff.TextFragmen
|
||||
}
|
||||
finding.Date = f.PatchHeader.AuthorDate.UTC().Format(time.RFC3339)
|
||||
}
|
||||
finding.Fingerprint = fmt.Sprintf("%s:%s:%s:%d", finding.Commit, finding.File, finding.RuleID, finding.StartLine)
|
||||
return finding
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user