Skip to content

Commit c03cd3d

Browse files
committed
fix: Remove "input" interpolation in .github/workflows/reusable_tf_checks.yml
1 parent 2817957 commit c03cd3d

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/reusable_tf_checks.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
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
@@ -35,7 +35,11 @@ jobs:
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
@@ -69,9 +73,16 @@ jobs:
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

0 commit comments

Comments
 (0)