From 205362129364fae11c0c7fb939e44b6aefbc78e4 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Wed, 5 Oct 2022 15:27:30 +0200 Subject: [PATCH] Use TFLINT_LOG environment variable instead of the deprecated --loglevel option (#3414) --- lib/functions/detectFiles.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/functions/detectFiles.sh b/lib/functions/detectFiles.sh index 5d43aa48..6858bc5b 100755 --- a/lib/functions/detectFiles.sh +++ b/lib/functions/detectFiles.sh @@ -509,12 +509,13 @@ function RunAdditionalInstalls() { if [ "${ACTIONS_RUNNER_DEBUG}" = "true" ]; then TF_LOG_LEVEL="debug" fi + debug "Set the tflint log level to: ${TF_LOG_LEVEL}" ######################### # Run the build command # ######################### BUILD_CMD=$( cd "${WORKSPACE_PATH}" || exit 0 - tflint --init --loglevel="${TF_LOG_LEVEL}" -c "${TERRAFORM_TFLINT_LINTER_RULES}" 2>&1 + TFLINT_LOG="${TF_LOG_LEVEL}" tflint --init -c "${TERRAFORM_TFLINT_LINTER_RULES}" 2>&1 ) ##############