aquasecurity / trivy-vscode-extension

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

How to point to the tricky.yaml when it is not in the root of the workspace #42

Open dschveninger opened 11 months ago

dschveninger commented 11 months ago

How do you point to the configuration file when it is not in the root directory of the workspace? We are using megalinter as a CI gates, and would like to use the configuration file for the project that is located in a subdirectories instead of the route of the workspace. That way the vs code scan use the same configuration as CI gates.

dschveninger commented 11 months ago

Can the extension support fixed trivy CLI arguments? like --config ./.github/linters/trivy.yaml

dschveninger commented 11 months ago

Would you be open to us pushing a PR to allow extension setting to point to a tryivy.yaml config file? Also, if that is done should we ignore the other extension setting if they are set in the config file.