From e4af4088e04e0c41e61e81f777c620ccaf4372f6 Mon Sep 17 00:00:00 2001 From: Nils Date: Mon, 10 Jul 2023 19:39:33 +0200 Subject: [PATCH] tflint and tfsec --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 916164a..cf04830 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,4 +17,14 @@ jobs: - name: Validate run: terraform validate - name: Formatting - run: terraform fmt -check \ No newline at end of file + run: terraform fmt -recursive -check -diff -no-color + # https://github.com/marketplace/actions/setup-tflint + - name: Lint + uses: terraform-linters/setup-tflint@v3 + with: + tflint_version: latest + - id: tflint + run: tflint --recursive --format compact + # https://github.com/marketplace/actions/tfsec-action + - name: tfsec + uses: aquasecurity/tfsec-action@v1.0.0 \ No newline at end of file