Replies: 2 comments 3 replies
-
In the desired behavior section you mentioned to suppress the warning. But the result is telling you that there is a problem with that particular resource. So are you saying this is a false positive and shouldn't be flagged? Just want to clarify what the issue is here and what's desired. |
Beta Was this translation helpful? Give feedback.
-
Ran into a similar issue around string evaluations. Here's a snippet of a statement that triggers
When using this, I get the following error:
If I (instead), use the following:
trivy is fine. I'm guessing that the UUID placeholder being put in ( |
Beta Was this translation helpful? Give feedback.
-
Description
I have a Terraform project using Trivy 0.49. I noticed a problem with the popular https://github.com/terraform-aws-modules/terraform-aws-lambda module which generates IAM policies using code like this:
Every one of those Lambda invocations will generate a finding like this:
Desired Behavior
Obviously I can ignore that rule or even all downloaded modules but I would like to evaluate all of the code we're using. In this case, it looks like the trick would be changing the evaluation logic to either suppress the warning when something like string formatting or interpolation is in use or, better, doing so only when the value is non-empty.
Actual Behavior
The finding was generated
Reproduction Steps
Operating System
ProductName: macOS ProductVersion: 14.3 BuildVersion: 23D56
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions