From e6caef0d94b63f02c34c50934c18b8671648e879 Mon Sep 17 00:00:00 2001 From: zach rice Date: Wed, 12 Sep 2018 19:17:04 -0500 Subject: [PATCH 1/2] test branch opt, bump changelog --- CHANGELOG.md | 4 ++++ gitleaks_test.go | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) 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", From 9dc9a8e62aaa9c94ce1374addc4335f1cdd730e8 Mon Sep 17 00:00:00 2001 From: zach rice Date: Wed, 12 Sep 2018 19:23:20 -0500 Subject: [PATCH 2/2] bump version --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4d4f20ca..bac94483 100644 --- a/main.go +++ b/main.go @@ -115,7 +115,7 @@ type Config struct { } const defaultGithubURL = "https://api.github.com/" -const version = "1.1.2" +const version = "1.3.0" const defaultConfig = ` title = "gitleaks config" # add regexes to the regex table