diff --git a/CHANGELOG.md b/CHANGELOG.md index 546600cc..4d70164b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ CHANGELOG ========= +1.3.0 +----- +- Target specific branch + 1.2.1 ----- - Check errors when generating commit patch diff --git a/gitleaks_test.go b/gitleaks_test.go index 8cdfeeeb..46ff3f63 100644 --- a/gitleaks_test.go +++ b/gitleaks_test.go @@ -339,6 +339,22 @@ func TestAuditRepo(t *testing.T) { MaxGoRoutines: 2, }, }, + { + repo: leaksRepo, + description: "audit specific bad branch", + numLeaks: 2, + testOpts: Options{ + Branch: "master", + }, + }, + { + repo: leaksRepo, + description: "audit specific good branch", + numLeaks: 0, + testOpts: Options{ + Branch: "dev", + }, + }, { repo: leaksRepo, description: "audit all branch",