@@ -14,14 +14,14 @@ func init() {
14
14
15
15
func TestGithubCloneWithInvalidTokenThrowsErr (t * testing.T ) {
16
16
f := func (d string ) error { return nil }
17
- err := CloneGitRepoAndDoAction ("https://github.com/diggerhq/private-repo" , "main" , "invalid-token" , f )
17
+ err := CloneGitRepoAndDoAction ("https://github.com/diggerhq/private-repo" , "main" , "" , " invalid-token" , f )
18
18
assert .NotNil (t , err )
19
19
}
20
20
21
21
func TestGithubCloneWithPublicRepoThrowsNoError (t * testing.T ) {
22
22
token := os .Getenv ("GITHUB_PAT_TOKEN" )
23
23
f := func (d string ) error { return nil }
24
- err := CloneGitRepoAndDoAction ("https://github.com/diggerhq/digger" , "develop" , token , f )
24
+ err := CloneGitRepoAndDoAction ("https://github.com/diggerhq/digger" , "develop" , "" , token , f )
25
25
assert .Nil (t , err )
26
26
}
27
27
@@ -32,13 +32,13 @@ func TestGithubCloneWithPrivateRepoAndValidTokenThrowsNoError(t *testing.T) {
32
32
return
33
33
}
34
34
f := func (d string ) error { return nil }
35
- err := CloneGitRepoAndDoAction ("https://github.com/diggerhq/infra-gcp" , "main" , token , f )
35
+ err := CloneGitRepoAndDoAction ("https://github.com/diggerhq/infra-gcp" , "main" , "" , token , f )
36
36
assert .Nil (t , err )
37
37
}
38
38
39
39
func TestGithubCloneWithInvalidBranchThrowsError (t * testing.T ) {
40
40
token := os .Getenv ("GITHUB_PAT_TOKEN" )
41
41
f := func (d string ) error { return nil }
42
- err := CloneGitRepoAndDoAction ("https://github.com/diggerhq/digger" , "not-a-branch" , token , f )
42
+ err := CloneGitRepoAndDoAction ("https://github.com/diggerhq/digger" , "not-a-branch" , "" , token , f )
43
43
assert .NotNil (t , err )
44
44
}
0 commit comments