From 4859377608d0c46fbd4074fb204130255a67f8f8 Mon Sep 17 00:00:00 2001 From: Ritika Patil Date: Wed, 3 Jan 2024 14:10:21 -0600 Subject: [PATCH] updated linter-analysis to run root separately --- .github/workflows/linter-analysis.yaml | 3 +++ linting-configs/.tflint.hcl | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter-analysis.yaml b/.github/workflows/linter-analysis.yaml index 954c9818..6a6d4f59 100644 --- a/.github/workflows/linter-analysis.yaml +++ b/.github/workflows/linter-analysis.yaml @@ -58,5 +58,8 @@ jobs: - name: Initializing TFLint run: TFLINT_LOG=info tflint --init -c "$(pwd)/linting-configs/.tflint.hcl" + - name: Run TFLint Action - root + run: TFLINT_LOG=info tflint -c "$(pwd)/linting-configs/.tflint.hcl" --var='ssh_public_key=null' + - name: Run TFLint Action run: TFLINT_LOG=info tflint -c "$(pwd)/linting-configs/.tflint.hcl" --recursive diff --git a/linting-configs/.tflint.hcl b/linting-configs/.tflint.hcl index 7fc985d8..f49fac6a 100644 --- a/linting-configs/.tflint.hcl +++ b/linting-configs/.tflint.hcl @@ -10,7 +10,6 @@ config { # Enables module inspection. module = true - variables = ["ssh_public_key=null"] } plugin "azurerm" {