exclude fork

This commit is contained in:
zach rice committed 2018-10-07 18:39:17 -05:00
1 parent 67454d109e
commit 88c0c7779b
3 files changed
+19 -2

No files matched your search

+10 -1
View File
@@ -279,11 +279,20 @@ func TestRun(t *testing.T) {
testOpts: Options{
GithubOrg: "gitleakstestorg",
},
description: "test github org",
description: "test github org, whitelist repo",
numLeaks: 0,
expectedErrMsg: "",
configPath: path.Join(configsDir, "repo"),
},
{
testOpts: Options{
GithubOrg: "gitleakstestorg",
ExcludeForks: true,
},
description: "test github org, exclude forks",
numLeaks: 0,
expectedErrMsg: "",
},
}
g := goblin.Goblin(t)
for _, test := range tests {