From a94277ad6a03d4724e90b4f77d043c7f1e1274a4 Mon Sep 17 00:00:00 2001 From: Oliver Wiebeck Date: Fri, 23 Aug 2024 09:14:27 +0200 Subject: [PATCH 1/2] Replace 'module' with 'call_module_type' See https://github.com/terraform-linters/tflint/pull/1951 --- terraform/.tflint.hcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/.tflint.hcl b/terraform/.tflint.hcl index 142d4c1..a2ab260 100644 --- a/terraform/.tflint.hcl +++ b/terraform/.tflint.hcl @@ -1,8 +1,8 @@ # https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/config.md # https://github.com/github/super-linter/blob/main/TEMPLATES/.tflint.hcl config { - module = false - force = false + call_module_type = "none" + force = false } plugin "terraform" { From 4a019474e1d274ac51acfcbc1c1ab7ea301586be Mon Sep 17 00:00:00 2001 From: Oliver Wiebeck Date: Fri, 23 Aug 2024 09:18:12 +0200 Subject: [PATCH 2/2] Add dummy subscription ID env var to silence missing argument error since azurerm v4 --- .github/workflows/terraform.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 361276d..0a53422 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -39,6 +39,8 @@ jobs: - name: Terraform validate id: validate if: ${{ !inputs.skip_validate && (success() || failure()) }} + env: + ARM_SUBSCRIPTION_ID: 0caa8408-f721-4bd2-8b21-e5cb6ac8891d # dummy subscription ID to silence missing argument error since azurerm v4 run: terraform validate -no-color - name: Create job summary