From e1297d7801bbf11ba588a7091eef70baa14ef30c Mon Sep 17 00:00:00 2001 From: Constantin Bugneac Date: Wed, 3 Jan 2024 22:25:35 +0000 Subject: [PATCH 1/3] update tflint --- .github/workflows/{pre-commit.yml => tflint.yml} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/{pre-commit.yml => tflint.yml} (94%) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/tflint.yml similarity index 94% rename from .github/workflows/pre-commit.yml rename to .github/workflows/tflint.yml index 9d9123bf0..d8db5a348 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/tflint.yml @@ -1,6 +1,6 @@ --- -name: pre-commit +name: tflint on: pull_request: @@ -10,10 +10,10 @@ on: env: terraform_version: 1.6.6 - tflint_version: v0.49.0 + tflint_version: v0.50.0 jobs: - pre-commit: + tflint: runs-on: ubuntu-22.04 steps: - name: Checkout source code From 106cf052c3068d2af31ddb22d183aaa746969f19 Mon Sep 17 00:00:00 2001 From: Constantin Bugneac Date: Wed, 3 Jan 2024 22:26:59 +0000 Subject: [PATCH 2/3] update tflint --- .github/workflows/tflint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tflint.yml b/.github/workflows/tflint.yml index d8db5a348..f8495890e 100644 --- a/.github/workflows/tflint.yml +++ b/.github/workflows/tflint.yml @@ -8,6 +8,8 @@ on: push: branches: [main] + workflow_dispatch: + env: terraform_version: 1.6.6 tflint_version: v0.50.0 From a535c3f96ed891d9ca53cffcb2257a080bcbe5a8 Mon Sep 17 00:00:00 2001 From: Constantin Bugneac Date: Wed, 3 Jan 2024 22:35:09 +0000 Subject: [PATCH 3/3] update tflint --- .github/workflows/{tflint.yml => pre-commit.yml} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename .github/workflows/{tflint.yml => pre-commit.yml} (90%) diff --git a/.github/workflows/tflint.yml b/.github/workflows/pre-commit.yml similarity index 90% rename from .github/workflows/tflint.yml rename to .github/workflows/pre-commit.yml index f8495890e..2030e84f8 100644 --- a/.github/workflows/tflint.yml +++ b/.github/workflows/pre-commit.yml @@ -1,9 +1,10 @@ --- -name: tflint +name: pre-commit on: pull_request: + branches: [main] push: branches: [main] @@ -15,7 +16,7 @@ env: tflint_version: v0.50.0 jobs: - tflint: + pre-commit: runs-on: ubuntu-22.04 steps: - name: Checkout source code @@ -28,7 +29,7 @@ jobs: uses: actions/cache@v3 with: path: ~/.tflint.d/plugins - key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }} + key: tflint-${{ hashFiles('.tflint.hcl') }} - name: Setup TFLint uses: terraform-linters/setup-tflint@v4