Use TFLINT_LOG environment variable instead of the deprecated --loglevel option (#3414)

This commit is contained in:
Marco Ferrari 2022-10-05 15:27:30 +02:00 committed by GitHub
parent b4f9dd9ef4
commit 2053621293
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
)
##############