Explorar el Código

test branch opt, bump changelog

zach rice hace 7 años
padre
commit
e6caef0d94
Se han modificado 2 ficheros con 20 adiciones y 0 borrados
  1. 4 0
      CHANGELOG.md
  2. 16 0
      gitleaks_test.go

+ 4 - 0
CHANGELOG.md

@@ -1,6 +1,10 @@
 CHANGELOG
 =========
 
+1.3.0
+-----
+- Target specific branch
+
 1.2.1
 -----
 - Check errors when generating commit patch

+ 16 - 0
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",