Skip to content

Commit 0e860e7

Browse files
VIA-579 AJ Use appropriate terraform version for analysis
1 parent a46b073 commit 0e860e7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/actions/lint-terraform/action.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,18 @@ runs:
1111
shell: bash
1212
run: |
1313
check_only=true scripts/githooks/check-terraform-format.sh
14+
15+
- name: "Identify Terraform version"
16+
shell: bash
17+
id: identify-terraform-version
18+
run: |
19+
echo "terraform_version=$(grep "^terraform" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
20+
1421
- name: "Install Terraform"
1522
uses: hashicorp/setup-terraform@v3
1623
with:
17-
terraform_version: "1.11.2"
24+
terraform_version: "${{ steps.identify-terraform-version.outputs.terraform_version }}"
25+
1826
- name: "Validate Terraform"
1927
shell: bash
2028
run: |

0 commit comments

Comments
 (0)