File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 description : Comma separated list of directories where traversal is skipped
1919 tflint_config :
2020 type : string
21- default : ${GITHUB_WORKSPACE}/ .tflint.hcl
21+ default : .tflint.hcl
2222 description : TFLint config file path
2323 tflint_args :
2424 type : string
3535 - name : Setup terraform
3636 uses : hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85
3737 - name : Run terraform fmt
38- run : terraform fmt ${{ inputs.tf_fmt_args }} ${{ inputs.working_directory }}
38+ env :
39+ ARGS : ${{ inputs.tf_fmt_args }}
40+ WORKING_DIRECTORY : ${{ inputs.working_directory }}
41+ run : |
42+ terraform fmt ${ARGS} "${WORKING_DIRECTORY}"
3943
4044 trivy_config_scan :
4145 name : run trivy config scan
6973 with :
7074 tflint_version : latest
7175 - name : Init TFLint
72- run : tflint --init -c ${{ inputs.tflint_config }}
76+ env :
77+ CONFIG : ${{ inputs.tflint_config }}
78+ run : |
79+ tflint --init -c "${GITHUB_WORKSPACE}/${CONFIG}"
7380 - name : Run TFLint
74- run : tflint -c ${{ inputs.tflint_config }} ${{ inputs.tflint_args }}
81+ env :
82+ CONFIG : ${{ inputs.tflint_config }}
83+ ARGS : ${{ inputs.tflint_args }}
84+ run : |
85+ tflint -c "${GITHUB_WORKSPACE}/${CONFIG}" ${ARGS}
7586
7687 terraform_docs :
7788 name : run terraform-docs
You can’t perform that action at this time.
0 commit comments