diff --git a/CHANGELOG.md b/CHANGELOG.md index 81f53a55..638a3c71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ CHANGELOG ========= +x.xx.x +--- +- uses the `GITLAB_TOKEN` to clone GitLab repos. 1.24.0 ---- diff --git a/gitlab.go b/gitlab.go index 4a984d18..79b25ca3 100644 --- a/gitlab.go +++ b/gitlab.go @@ -148,7 +148,7 @@ func cloneGitlabRepo(tempDir string, p *gitlab.Project) (*RepoDescriptor, error) opt.URL = p.SSHURLToRepo opt.Auth = sshAuth } else if gitLabToken != "" { - opt.Auth = &gitHttp.BasicAuth { + opt.Auth = &gitHttp.BasicAuth{ Username: "fakeUsername", // yes, this can be anything except an empty string Password: gitLabToken, }