Skip to content

Commit

Permalink
Fixed private auth in GitLab clone (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh-prakash authored Mar 30, 2022
1 parent 39e7991 commit fcfbba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gitmanager/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (gm *gitManager) initGit(ctx context.Context, payload *core.Payload, oauth
creds := strings.Split(string(decodedToken), ":")
repoURL.User = url.UserPassword(creds[0], creds[1])
} else {
repoURL.User = url.UserPassword("x-token-auth", oauth.Data.AccessToken)
repoURL.User = url.UserPassword("oauth2", oauth.Data.AccessToken)
}

urlWithToken := repoURL.String()
Expand Down

0 comments on commit fcfbba6

Please sign in to comment.