From ba254cc2d5ad06b91f8733cea0ccb7ac8b798cb5 Mon Sep 17 00:00:00 2001 From: Alejandro Lazaro Date: Tue, 28 Dec 2021 14:00:32 +0100 Subject: [PATCH] migration from "trivy" to "trivy image" command `trivy` command behaves the same as `trivy image` for backward compatibility. But it was deprecated in v0.8.0. It's been more than a year and this option will be removed in v0.23.0 which is supposed to be released at the end of January 2022. Please migrate to `trivy image`. https://github.com/aquasecurity/trivy/discussions/1515 --- src/trivy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/trivy.ts b/src/trivy.ts index d37b02c..17c881d 100644 --- a/src/trivy.ts +++ b/src/trivy.ts @@ -8,6 +8,7 @@ export function scan( option: TrivyCmdOption ): string | undefined { const args = [ + 'image', '--severity', option.severity, '--vuln-type',