trivy:ignore:*
does not work in resources in helm charts
#8128
RangerRick
started this conversation in
Ideas
Replies: 1 comment
-
Hi @RangerRick ! Thank you for the report. The documentation says that ignore by inline comments only works for Terraform and CloudFormation config files. I'll change the discussion category from bug to new feature request. /cc @itaysk |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I have a false positive when doing a
trivy config
on a Helm chart directory, and I would like to ignore it (or for trivy to not detect it in the first place). As far as I can tell, there is no form of#trivy:ignore:XXXX
that is accepted.For example, I get this error:
Inside the ConfigMap, the
password_validation.py
file looks like this, it is not storing any secrets, it's just a script that implements custom password validation in Django:I have tried putting
#trivy:ignore:AVD-KSV-0109
at every line of this file, from above thepassword_validation.py:
to inside the python script.Desired Behavior
#trivy:ignore:*
is at the very least honored at the level of an entire resource in aConfigMap
#trivy:ignore:*
would be honored inside the resource, depending on what it is (in this case, a python script)ConfigMap
, it would say what line the error is, either of the resource in theConfigMap
, or the overall yaml file.Actual Behavior
The false positive is always thrown.
Reproduction Steps
Target
Filesystem
Scanner
Misconfiguration
Output Format
Table
Mode
Standalone
Debug Output
Operating System
macOS Sequoia 15.2
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions