From bae350d85f40dc398aa497c6b5922577d5e9717f Mon Sep 17 00:00:00 2001 From: Scott Gerring Date: Thu, 22 Feb 2024 15:36:00 +0100 Subject: [PATCH 1/2] fix PR lint --- .github/workflows/pr_iac_lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_iac_lint.yml b/.github/workflows/pr_iac_lint.yml index c6e17ab1c..39c2bc5df 100644 --- a/.github/workflows/pr_iac_lint.yml +++ b/.github/workflows/pr_iac_lint.yml @@ -29,14 +29,14 @@ jobs: run: | mvn install -DskipTests - name: Run SAM validator to check syntax of IaC templates - Java - working-directory: examples/powertools-examples-core/${{ matrix.project }} + working-directory: examples/powertools-examples-core-utilities//${{ matrix.project }} run: | sam build sam validate --lint - name: Setup Terraform uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 #v2.0.3 - name: Run Terraform validator to check syntax of IaC templates and produce a plan of changes - working-directory: examples/powertools-examples-core/terraform + working-directory: examples/powertools-examples-core-utilities/terraform run: | mvn install terraform -version From 28a6fc423e8a1980f8467d31f4d76defba5e783f Mon Sep 17 00:00:00 2001 From: Scott Gerring Date: Thu, 22 Feb 2024 15:42:46 +0100 Subject: [PATCH 2/2] And another one --- .github/workflows/pr_iac_lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_iac_lint.yml b/.github/workflows/pr_iac_lint.yml index 39c2bc5df..09ba5f02b 100644 --- a/.github/workflows/pr_iac_lint.yml +++ b/.github/workflows/pr_iac_lint.yml @@ -45,7 +45,7 @@ jobs: - name: Setup Terraform lint uses: terraform-linters/setup-tflint@a5a1af8c6551fb10c53f1cd4ba62359f1973746f # v3.1.1 - name: Run Terraform lint to check for best practices, errors, deprecated syntax etc. - working-directory: examples/powertools-examples-core/terraform + working-directory: examples/powertools-examples-core-utilities/terraform run: | tflint --version tflint --init