diff --git a/contrib/trivy/parser/v2/parser.go b/contrib/trivy/parser/v2/parser.go index 3b873700..db071458 100644 --- a/contrib/trivy/parser/v2/parser.go +++ b/contrib/trivy/parser/v2/parser.go @@ -40,7 +40,7 @@ var dockerTagPattern = regexp.MustCompile(`^(.*):(.*)$`) func setScanResultMeta(scanResult *models.ScanResult, report *types.Report) error { if len(report.Results) == 0 { - return xerrors.Errorf("scanned images or libraries are not supported by Trivy. see https://aquasecurity.github.io/trivy/dev/vulnerability/detection/os/, https://aquasecurity.github.io/trivy/dev/vulnerability/detection/language/") + return xerrors.Errorf("scanned images or libraries are not supported by Trivy. see https://aquasecurity.github.io/trivy/dev/docs/coverage/os/, https://aquasecurity.github.io/trivy/dev/docs/coverage/language/") } scanResult.ServerName = report.ArtifactName diff --git a/contrib/trivy/parser/v2/parser_test.go b/contrib/trivy/parser/v2/parser_test.go index 612cb0f9..07cfe9c4 100644 --- a/contrib/trivy/parser/v2/parser_test.go +++ b/contrib/trivy/parser/v2/parser_test.go @@ -1075,7 +1075,7 @@ func TestParseError(t *testing.T) { }{ "image hello-world": { vulnJSON: helloWorldTrivy, - expected: xerrors.Errorf("scanned images or libraries are not supported by Trivy. see https://aquasecurity.github.io/trivy/dev/vulnerability/detection/os/, https://aquasecurity.github.io/trivy/dev/vulnerability/detection/language/"), + expected: xerrors.Errorf("scanned images or libraries are not supported by Trivy. see https://aquasecurity.github.io/trivy/dev/docs/coverage/os/, https://aquasecurity.github.io/trivy/dev/docs/coverage/language/"), }, }