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:
Zachary Rice authored and GitHub committed 2022-08-12 08:08:13 -05:00
1 parent 6748a89bf4
commit 1b3f10cb79
4 files changed
+69 -1

No files matched your search

+2
View File
@@ -483,6 +483,7 @@ func TestFromFiles(t *testing.T) {
RuleID: "aws-access-key",
Tags: []string{"key", "AWS"},
Entropy: 3.0841837,
Fingerprint: "../testdata/repos/nogit/main.go:aws-access-key:20",
},
},
},
@@ -502,6 +503,7 @@ func TestFromFiles(t *testing.T) {
RuleID: "aws-access-key",
Tags: []string{"key", "AWS"},
Entropy: 3.0841837,
Fingerprint: "../testdata/repos/nogit/main.go:aws-access-key:20",
},
},
},