support self hosted GitLab server

This commit is contained in:
boris committed 2018-11-06 15:10:12 +02:00
1 parent 79a8983bac
commit 1ea773ddfb
2 files changed
+6

No files matched your search

+5
View File
@@ -20,6 +20,11 @@ func auditGitlabRepos() ([]Leak, error) {
page := 1
cl := gitlab.NewClient(nil, os.Getenv("GITLAB_TOKEN"))
// if self hosted GitLab server
if url := os.Getenv("GITLAB_URL"); url != "" {
cl.SetBaseURL(url)
}
var (
ps []*gitlab.Project
resp *gitlab.Response