Inline comment not ignoring rule when run on whole directory. #9248
Closed
alastairmontgomery1-nhs
started this conversation in
Bugs
Replies: 1 comment
-
Seems it was picking up an old plan file instead of re-reading the Terraform files. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have a inline comment to ignore the rule AVD-AWS-0132 for encrypting bucket with customer managed key.
When I run trivy against this single file the ignore comment is honored.
But is I run trivy against the whole directory the ignore comment isn't honored.
Trivy being run via the Docker image.
Configuration
Desired Behavior
I expect the ignore comment line to be honored when run both against a single file or the whole directory.
Actual Behavior
Reports errors against code which has the ignore comment.
Reproduction Steps
Target
AWS
Scanner
Misconfiguration
Output Format
Table
Mode
Standalone
Debug Output
Operating System
Linux
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions