mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
Whitelist repo (#378)
* fixing commit latest bug * bumping go-git and adding repo whitelist * adding tests
This commit is contained in:
1 parent
8bd4649b01
commit
473d0d55a7
12 files changed
+282
-65
No files matched your search
@@ -173,6 +173,16 @@ func TestAudit(t *testing.T) {
|
||||
},
|
||||
wantPath: "../test_data/test_local_owner_aws_leak.json",
|
||||
},
|
||||
{
|
||||
description: "test owner path whitelist repo",
|
||||
opts: options.Options{
|
||||
OwnerPath: "../test_data/test_repos/",
|
||||
Report: "../test_data/test_local_owner_aws_leak_whitelist_repo.json.got",
|
||||
ReportFormat: "json",
|
||||
Config: "../test_data/test_configs/aws_key_local_owner_whitelist_repo.toml",
|
||||
},
|
||||
wantPath: "../test_data/test_local_owner_aws_leak_whitelist_repo.json",
|
||||
},
|
||||
{
|
||||
description: "test entropy and regex",
|
||||
opts: options.Options{
|
||||
|
||||
Reference in new issue
Block a user