feat(misconf): Scan multiple Helm Charts at once #7459
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
scan/misconfiguration
Issues relating to misconfiguration scanning
Milestone
Discussed in #7404
Originally posted by yannispgs August 27, 2024
Question
Hi,
I am having some trouble adapting the Trivy CLI to easily scan all my Helm Charts in a single command. The repository I am scanning has the following structure :
.helm/
:microservice1/
:templates/
: all the Kubernetes manifestsvalues.yaml
: values common to all environmentsvalues-env.yaml
: values specific to an environmentmicroservice2/
: same as microservice1services/
: the source code for every microserviceI have only managed to scan each Helm Chart one-by-one because the
helm-values
option asks for relative path from Shell current directory. Thus, I need 1 Trivy command per Helm Chart.Is there a way to tell Trivy to look for
values.yaml
andvalues-env.yaml
files at the root folder of every Helm Chart ?Otherwise, I can render the Helm templates one by one in an output dir and then Trivy will be able to scan them all at once, but I was wondering if there could be a direct workaround.
Target
Git Repository
Scanner
Misconfiguration
Output Format
Table
Mode
Standalone
Operating System
macOS Sonoma 14.5
Version
The text was updated successfully, but these errors were encountered: