Skip to content

Commit

Permalink
fix(bom): corrected get_accessibility for aws_bucket (#4664)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaela-soares authored Jan 17, 2022
1 parent 50cd429 commit 61f0237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/queries/terraform/aws_bom/s3_bucket/query.rego
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ get_accessibility(bucket, bucketName) = accessibility {
accessibility := "private"
} else = accessibility {
# cases when there is a unrestriced policy
accessibility := terra_lib.get_accessibility(bucket, bucketName, "aws_s3_bucket_policy", "bucket")
accessibility := terra_lib.get_accessibility(bucket, bucketName, "aws_s3_bucket_policy", "bucket").accessibility
accessibility != "unknown"
} else = accessibility {
# last cases: acl definition
Expand Down

0 comments on commit 61f0237

Please sign in to comment.