mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
1 parent
8eb28cbb4c
commit
fad98cbde2
216 files changed
+27523
-3828
No files matched your search
+6
-2
@@ -401,12 +401,14 @@ func TestAuditRepo(t *testing.T) {
|
||||
numLeaks: 0,
|
||||
},
|
||||
{
|
||||
// note this double counts the first commit since we are whitelisting
|
||||
// a "bad" first commit
|
||||
repo: leaksRepo,
|
||||
description: "two leaks present whitelist bad commit",
|
||||
whiteListCommits: map[string]bool{
|
||||
"eaeffdc65b4c73ccb67e75d96bd8743be2c85973": true,
|
||||
},
|
||||
numLeaks: 1,
|
||||
numLeaks: 2,
|
||||
},
|
||||
{
|
||||
repo: leaksRepo,
|
||||
@@ -438,10 +440,12 @@ func TestAuditRepo(t *testing.T) {
|
||||
numLeaks: 0,
|
||||
},
|
||||
{
|
||||
// note this double counts the first commit since we are whitelisting
|
||||
// a "bad" first commit
|
||||
repo: leaksRepo,
|
||||
description: "toml whitelist commit",
|
||||
configPath: path.Join(configsDir, "commit"),
|
||||
numLeaks: 1,
|
||||
numLeaks: 2,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user