feat(sbom): add a dedicated sbom command (#1799)

Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
Tamir Kiviti
2022-03-23 23:42:22 +02:00
committed by GitHub
parent 7a148089ec
commit f36d9b6f90
10 changed files with 381 additions and 5 deletions

View File

@@ -86,7 +86,7 @@ func TestOption_Init(t *testing.T) {
name: "invalid option combination: token and token header without server",
args: []string{"--token", "secret", "--token-header", "X-Trivy-Token", "alpine:3.11"},
logs: []string{
"'--token', '--token-header' and 'custom-header' can be used only with '--server'",
`"--token" can be used only with "--server"`,
},
want: Option{
ReportOption: option.ReportOption{