mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 15:16:33 -08:00
test: add HTTP basic authentication to git test server (#9407)
This commit is contained in:
@@ -27,10 +27,10 @@ import (
|
||||
)
|
||||
|
||||
func setupGitRepository(t *testing.T, repo, dir string) *httptest.Server {
|
||||
gs := gittest.NewServer(t, repo, dir)
|
||||
gs := gittest.NewServer(t, repo, dir, gittest.Options{})
|
||||
|
||||
worktree := t.TempDir()
|
||||
r := gittest.Clone(t, gs, repo, worktree)
|
||||
r := gittest.Clone(t, gs, repo, worktree, gittest.Options{})
|
||||
|
||||
// git tag
|
||||
gittest.SetTag(t, r, "v0.2.0")
|
||||
|
||||
Reference in New Issue
Block a user