From b6449b8b47f88cfab06cdc5b371803f5282ccc27 Mon Sep 17 00:00:00 2001 From: Mike Houston Date: Thu, 4 Jul 2024 16:41:29 +0100 Subject: [PATCH] CCM-5100: Add an init step to terraform-validate rule --- .github/actions/lint-terraform/action.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/lint-terraform/action.yaml b/.github/actions/lint-terraform/action.yaml index d5dfe35..28d990c 100644 --- a/.github/actions/lint-terraform/action.yaml +++ b/.github/actions/lint-terraform/action.yaml @@ -16,5 +16,6 @@ runs: run: | stacks=${{ inputs.root-modules }} for dir in $(find infrastructure/environments -maxdepth 1 -mindepth 1 -type d; echo ${stacks//,/$'\n'}); do + dir=$dir opts='-backend=false' make terraform-init dir=$dir make terraform-validate done