aquasecurity / trivy-vscode-extension

A VS Code Extension for Trivy
https://marketplace.visualstudio.com/items?itemName=AquaSecurityOfficial.trivy-vulnerability-scanner
Apache License 2.0
109 stars 18 forks source link

Error: "Failed to run Trivy scan" with Trivy v0.23.0 #18

Closed Renatas-M closed 2 years ago

Renatas-M commented 2 years ago

Having Trivy v0.23.0 installed on my WSL2 Ubuntu 20.04 distro. When trying to use extension two errors pops up: Failed to run Trivy scan, error: 1 check logs for details. and Unsupported Trivy version found. Please upgrade to v0.9.1 or higher

From source code and logs I see trivy --format=json --version command is executed and it ends up to flag provided but not defined: -format Trivy error in logs.

owenrumney commented 2 years ago

this should work on the next release of the extension (shortly) - there was a regression in trivy where it no longer outputs the version in the same way