Replies: 1 comment
-
hi @du228 thanks for the report, track #6537 It seems this bug crept in at v0.50.0 so the quick workaround would be to downgrade to v0.49.0 temporarily until we patch it. |
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
We are replacing
tfsec
withtrivy
and It seems trivy can't parse terraform module version if "version" has complex expression.For example if the terraform configuration has the code similar to this one
trivy will end up with this in debug log:
and no scan will be performed for this module.
Desired Behavior
In
tfsec
it worked as expected:If we set simple expression instead, trivy will work as expected (change "~> 15.0" to "> 15.0")
Actual Behavior
Failed to load module "improper constraint: ~> 15.0"
Reproduction Steps
Target
Filesystem
Scanner
Misconfiguration
Output Format
None
Mode
Standalone
Debug Output
Operating System
macOS Sonome
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions