diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6ba50ee..89e2baf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,14 +13,12 @@ jobs: steps: - name: Clone repo uses: actions/checkout@v3 + - name: Install Terraform + uses: hashicorp/setup-terraform@v3 - name: Validate app_building - uses: dflook/terraform-validate@v1 - with: - path: terraform/app_building + run: terraform -chdir=terraform/app_building init -backend=false && terraform -chdir=terraform/app_building validate - name: Validate app - uses: dflook/terraform-validate@v1 - with: - path: terraform/app + run: terraform -chdir=terraform/app init -backend=false && terraform -chdir=terraform/app validate - name: Run tfsec uses: aquasecurity/tfsec-action@v1.0.3