Skip to content

Commit aea9ff2

Browse files
authored
Merge pull request #64 from ONS-Innovation/KEH-1281-linting-update
fix(lint): address temporary linting exceptions
2 parents 1be03b7 + fa5c17e commit aea9ff2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.checkov.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ skip-check:
2121
# SPP use the same pattern so it's not a concern for us
2222
- CKV_AWS_382
2323

24-
# These ignores are TEMPORARY. They will be resolved in the future.
25-
- CKV_AWS_108
24+
# Ignore adding code-signing to Lambda.
25+
# It is not needed here since our Lambda functions use container
26+
# images over uploading .zip files for layers.
2627
- CKV_AWS_272

terraform/data.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ data "aws_iam_policy_document" "lambda_logging" {
3939
"logs:PutLogEvents",
4040
]
4141

42-
resources = ["arn:aws:logs:*:*:*"] #trivy:ignore:AVD-AWS-0057
42+
resources = [
43+
"${aws_cloudwatch_log_group.loggroup.arn}:*"
44+
]
4345
}
4446
}
4547

@@ -70,7 +72,7 @@ data "aws_iam_policy_document" "lambda_secret_manager_policy" {
7072
]
7173

7274
resources = [
73-
"*"
75+
"arn:aws:secretsmanager:*:*:secret:${var.aws_secret_name}*"
7476
]
7577
}
7678
}

0 commit comments

Comments
 (0)