Skip to content

Commit

Permalink
Ask Trivy to report MEDIUM and HIGH issues as well
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvaann committed Jan 6, 2025
1 parent f0512b5 commit 476e83d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
- id: terraform_tflint
- id: terraform_trivy
args:
- --args=--severity CRITICAL
- --args=--severity MEDIUM,HIGH,CRITICAL
- --args=--skip-dirs="*/.terraform"
- --args=--tf-exclude-downloaded-modules
- id: terraform_checkov
Expand Down
2 changes: 2 additions & 0 deletions config/msk.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ zookeeper.session.timeout.ms=18000
PROPERTIES
}

#trivy:ignore:AVD-AWS-0074 Temporarly skip these checks
#trivy:ignore:AVD-AWS-0179 Temporarly skip these checks
resource "aws_msk_cluster" "msk_cluster" {
count = var.enable_msk ? 1 : 0

Expand Down
3 changes: 3 additions & 0 deletions config/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ resource "aws_security_group" "rds_access" {

}

#trivy:ignore:AVD-AWS-0077 Temporarly skip these checks
#trivy:ignore:AVD-AWS-0177 Temporarly skip these checks
#trivy:ignore:AVD-AWS-0176 Temporarly skip these checks
resource "aws_db_instance" "radar_postgres" {
count = var.enable_rds ? 1 : 0

Expand Down

0 comments on commit 476e83d

Please sign in to comment.