feat: support scan remote repository (#3131)

Co-authored-by: AMF <work@afdesk.com>
Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
Pikaqiu
2022-12-11 17:57:04 +08:00
committed by GitHub
parent c278d86614
commit 8744534c28
9 changed files with 295 additions and 5 deletions

View File

@@ -248,6 +248,15 @@ func TestClientServer(t *testing.T) {
},
golden: "testdata/secrets.json.golden",
},
{
name: "scan remote repository with repo command in client/server mode",
args: csArgs{
Command: "repo",
RemoteAddrOption: "--server",
Target: "https://github.com/knqyf263/trivy-ci-test",
},
golden: "testdata/test-repo.json.golden",
},
}
addr, cacheDir := setup(t, setupOptions{})