From 3f98fbc82c9eb9046b755ee58b6a65a1e50522b2 Mon Sep 17 00:00:00 2001 From: future-ryunosuketanai <56010048+future-ryunosuketanai@users.noreply.github.com> Date: Thu, 25 Apr 2024 19:20:42 +0900 Subject: [PATCH] style(log) fix trivy scan page link (#1902) --- contrib/trivy/parser/v2/parser.go | 2 +- contrib/trivy/parser/v2/parser_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/"), }, }