File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -504,12 +504,17 @@ function RunAdditionalInstalls() {
504
504
if [ " ${VALIDATE_TERRAFORM_TFLINT} " == " true" ] && [ " ${# FILE_ARRAY_TERRAFORM_TFLINT[@]} " -ne 0 ]; then
505
505
info " Detected TFLint Language files to lint."
506
506
info " Trying to install the TFLint init inside:[${WORKSPACE_PATH} ]"
507
+ # Set the log level
508
+ TF_LOG_LEVEL=" info"
509
+ if [ " ${ACTIONS_RUNNER_DEBUG} " = " true" ]; then
510
+ TF_LOG_LEVEL=" debug"
511
+ fi
507
512
# ########################
508
513
# Run the build command #
509
514
# ########################
510
515
BUILD_CMD=$(
511
516
cd " ${WORKSPACE_PATH} " || exit 0
512
- tflint --init 2>&1
517
+ tflint --init --loglevel= " ${TF_LOG_LEVEL} " -c " ${TERRAFORM_TFLINT_LINTER_RULES} " 2>&1
513
518
)
514
519
515
520
# #############
You can’t perform that action at this time.
0 commit comments