Skip to content

Commit 47ebd8a

Browse files
committed
ci: refactor terraform validation
1 parent 5659388 commit 47ebd8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/terraform-validate-template.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ jobs:
7171
# tflint -c ${GITHUB_WORKSPACE}/.tflint.hcl --var-file ${GITHUB_WORKSPACE}/.github/lint/tflint.tfvars ${{ inputs.tflint-options }}
7272
- name: tflint
7373
uses: reviewdog/[email protected]
74+
env:
75+
TFLINT_CONFIG: ${GITHUB_WORKSPACE}/.tflint.hcl
7476
with:
7577
tflint_init: true
7678
github_token: ${{ secrets.github_token }}
77-
tflint_config: ${GITHUB_WORKSPACE}/.tflint.hcl
79+
tflint_config: ${{ github.workspace }}/.tflint.hcl

0 commit comments

Comments
 (0)