From e913f2501c86ac20a54f23423239f848264e5921 Mon Sep 17 00:00:00 2001 From: christian-calabrese Date: Mon, 23 Dec 2024 11:06:54 +0100 Subject: [PATCH] fix: pre-commit patterns --- .pre-commit-config.yaml | 8 +++++--- src/aks-platform/tfmodules.lock.json | 3 +++ src/common/prod/tfmodules.lock.json | 3 +++ src/core/prod/tfmodules.lock.json | 4 ++++ 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 src/aks-platform/tfmodules.lock.json create mode 100644 src/common/prod/tfmodules.lock.json create mode 100644 src/core/prod/tfmodules.lock.json diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 33d7227ed..88894aa8a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,13 @@ repos: - repo: https://github.com/pagopa/dx - rev: c7410ed50d211e756cd4bbb8152e1b275b4485b4 + rev: 498e30be0ec7abd03f71148b939cde1c784f8135 hooks: - id: terraform_providers_lock_staged - + - id: lock_modules + exclude: ^.*/(_modules|modules|\.terraform)(/.*)?$ + files: src/(common|core|github_runner|identity|migration|repository) - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.96.1 + rev: v1.96.2 hooks: - id: terraform_tflint args: diff --git a/src/aks-platform/tfmodules.lock.json b/src/aks-platform/tfmodules.lock.json new file mode 100644 index 000000000..c795ac357 --- /dev/null +++ b/src/aks-platform/tfmodules.lock.json @@ -0,0 +1,3 @@ +{ + "nginx_ingress": "84ff92691f909a05b224e1c56abb4864f01b4f8e3c854e4bb4c7baf1d3f6d652" +} diff --git a/src/common/prod/tfmodules.lock.json b/src/common/prod/tfmodules.lock.json new file mode 100644 index 000000000..95b3766d1 --- /dev/null +++ b/src/common/prod/tfmodules.lock.json @@ -0,0 +1,3 @@ +{ + "dx-azure-naming-convention": "84ff92691f909a05b224e1c56abb4864f01b4f8e3c854e4bb4c7baf1d3f6d652" +} diff --git a/src/core/prod/tfmodules.lock.json b/src/core/prod/tfmodules.lock.json new file mode 100644 index 000000000..3239a64d1 --- /dev/null +++ b/src/core/prod/tfmodules.lock.json @@ -0,0 +1,4 @@ +{ + "networking_itn.dx-azure-naming-convention": "84ff92691f909a05b224e1c56abb4864f01b4f8e3c854e4bb4c7baf1d3f6d652", + "networking_weu.dx-azure-naming-convention": "84ff92691f909a05b224e1c56abb4864f01b4f8e3c854e4bb4c7baf1d3f6d652" +}