mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
add changelog and format go code
This commit is contained in:
1 parent
75c70bf804
commit
771055fd59
2 files changed
+4
-1
No files matched your search
@@ -1,5 +1,8 @@
|
|||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
x.xx.x
|
||||||
|
---
|
||||||
|
- uses the `GITLAB_TOKEN` to clone GitLab repos.
|
||||||
|
|
||||||
1.24.0
|
1.24.0
|
||||||
----
|
----
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ func cloneGitlabRepo(tempDir string, p *gitlab.Project) (*RepoDescriptor, error)
|
|||||||
opt.URL = p.SSHURLToRepo
|
opt.URL = p.SSHURLToRepo
|
||||||
opt.Auth = sshAuth
|
opt.Auth = sshAuth
|
||||||
} else if gitLabToken != "" {
|
} else if gitLabToken != "" {
|
||||||
opt.Auth = &gitHttp.BasicAuth {
|
opt.Auth = &gitHttp.BasicAuth{
|
||||||
Username: "fakeUsername", // yes, this can be anything except an empty string
|
Username: "fakeUsername", // yes, this can be anything except an empty string
|
||||||
Password: gitLabToken,
|
Password: gitLabToken,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user