diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3a8df35..f274372 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.77.2 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases + rev: v1.81.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases hooks: - id: terraform_fmt - id: terraform_docs @@ -24,7 +24,7 @@ repos: - id: terraform_checkov exclude: (test/|examples/) - repo: https://github.com/gitguardian/ggshield - rev: v1.14.5 # Update to latest version by running `pre-commit autoupdate` + rev: v1.16.0 # Update to latest version by running `pre-commit autoupdate` hooks: - id: ggshield language: python diff --git a/modules/google_sql_database_instance/main.tf b/modules/google_sql_database_instance/main.tf index 394bd70..dd4c2dc 100644 --- a/modules/google_sql_database_instance/main.tf +++ b/modules/google_sql_database_instance/main.tf @@ -59,6 +59,7 @@ resource "google_sql_database_instance" "instance" { #checkov:skip=CKV_GCP_111:Ensure GCP PostgreSQL logs SQL statements 'pgaudit.log' flag is set to 'all' #checkov:skip=CKV2_GCP_20:Ensure MySQL DB instance has point-in-time recovery backup configured #checkov:skip=CKV2_GCP_13:Ensure PostgreSQL database flag 'log_duration' is set to 'on' + #checkov:skip=CKV_GCP_79: "Ensure SQL database is using latest Major version" database_version = var.database_version @@ -143,6 +144,7 @@ resource "google_sql_database_instance" "read_replica" { #checkov:skip=CKV_GCP_111:Ensure GCP PostgreSQL logs SQL statements 'pgaudit.log' flag is set to 'all' #checkov:skip=CKV2_GCP_20:Ensure MySQL DB instance has point-in-time recovery backup configured #checkov:skip=CKV2_GCP_13:Ensure PostgreSQL database flag 'log_duration' is set to 'on' + #checkov:skip=CKV_GCP_79: "Ensure SQL database is using latest Major version" depends_on = [ google_sql_database_instance.instance