fix(checks): aws_lambda_permission should not be checked for x-ray scanning #8228
Labels
kind/bug
Categorizes issue or PR as related to a bug.
scan/misconfiguration
Issues relating to misconfiguration scanning
Milestone
Discussed in #8227
Originally posted by MattBergin January 10, 2025
Description
The aws_lambda_permission resource is being mistakenly scanned by trivy as a lambda function and returning a failure that it doesn't have x-ray tracing enabled.
This should not be the case as you cannot enable x-ray tracing on an aws_lambda_permission resource, only on a Lambda function.
Desired Behavior
aws_lambda_permissions resource should not be scanned for x-ray tracing
Actual Behavior
aws_lambda_permission resource is scanned for x-ray tracing and returns a failure as it cannot be applied to this resource.
Reproduction Steps
Running a trivy scan on this returns the following error:
Operating System
Tested on Linux and MacOs
Version
Checklist
trivy clean --all
The text was updated successfully, but these errors were encountered: