Paths don't work in .trivyignore.yaml #8058
Replies: 2 comments
-
hi @salemgolemugoo thanks for the report - I can reproduce it locally. @nikpivkin this looks like a bug to me in the checks. |
Beta Was this translation helpful? Give feedback.
-
The bug seems to be related to creating a listener for a load balancer created outside the Terraform being analysed. So something like this: data "aws_lb" "lb" {
name = "external-lb"
}
resource "aws_lb_listener" "listener" {
load_balancer_arn = data.aws_lb.lb.arn
port = 443
default_action {
type = "fixed-response"
fixed_response {
content_type = "text/plain"
status_code = "421"
}
}
} will always trigger |
Beta Was this translation helpful? Give feedback.
-
Description
Trying to exclude some security warnings by specifying
paths
attribute in .trivyignore.yaml https://trivy.dev/latest/docs/configuration/filtering/#trivyignoreyamlDesired Behavior
There should be no warnings AVD-AWS-0052, AVD-AWS-0053
Actual Behavior
paths
is being skipped. And I still see warningsReproduction Steps
mkdir -p test
trivy conf -s MEDIUM,HIGH,CRITICAL --ignorefile .trivyignore.yaml --debug --cache-dir /tmp --misconfig-scanners terraform ./test
Target
Filesystem
Scanner
Misconfiguration
Output Format
None
Mode
Standalone
Debug Output
Operating System
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions