aquasecurity/trivy-vscode-extension

Bug: The command 'Trivy Scan' fails due to the unknown flag '-quiet'

Closed this issue · 2 comments

Expected

When I execute Trivy Scan I would expect to perceive the scan results.

Actual

A VS Code popup reports Failed to run Trivy scan, error: 1 check logs for details. The output window includes the following:

Incorrect Usage: flag provided but not defined: -quiet

NAME:
   trivy filesystem - scan local filesystem

USAGE:
   trivy filesystem [command options] dir
(and so on...)

Details

The installed version of Trivy Vulnerability Scanner is v0.2.4

$ trivy --version
Version: 0.16.0
Vulnerability DB:
  Type: Light
  Version: 1
  UpdatedAt: 2021-03-16 00:35:37.404551114 +0000 UTC
  NextUpdate: 2021-03-16 12:35:37.404550414 +0000 UTC
  DownloadedAt: 2021-03-16 11:50:00.590002972 +0000 UTC

hi @Adelrisk - thanks for reaching out! Indeed this is a bug and has been fixed in the latest release. You can download the 0.2.6 release from the marketplace https://marketplace.visualstudio.com/items?itemName=AquaSecurityOfficial.trivy-vulnerability-scanner

Let us know if you still run into trouble, happy to help!

Works! Thanks for the feedback and offer.