mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
Fixing merge commit scans and large patch rule checking (#414)
* Fixing merge commit scans and large patch rule checking * Adding tests for merge request scans
This commit is contained in:
1 parent
1dc7569f95
commit
eabc7b5c12
47 files changed
+278
-32
No files matched your search
@@ -376,6 +376,15 @@ func TestScan(t *testing.T) {
|
||||
},
|
||||
wantPath: "../test_data/test_local_repo_two_leaks_deletion.json",
|
||||
},
|
||||
{
|
||||
description: "test local repo eight (merges)",
|
||||
opts: options.Options{
|
||||
RepoPath: "../test_data/test_repos/test_repo_8",
|
||||
Report: "../test_data/test_local_repo_eight.json.got",
|
||||
ReportFormat: "json",
|
||||
},
|
||||
wantPath: "../test_data/test_local_repo_eight.json",
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
||||
Reference in new issue
Block a user