Skip to content

fix(terraform-static): install Terraform before fmt check - #133

Merged
sdh100shaun merged 1 commit into
dvsa:mainfrom
divyaguntreddi-tech:patch-1
Nov 27, 2026
Merged

sdh100shaun merged 1 commit into
dvsa:mainfrom
divyaguntreddi-tech:patch-1

Conversation

@divyaguntreddi-tech

Copy link
Copy Markdown
Contributor

Description

The terraform-fmt ("Format Terraform") job checks out the repo and goes straight to terraform fmt -check, but never installs Terraform. On a clean ubuntu-latest runner it fails with exit 127 (command not found), so any repo calling this workflow at v7 gets a red Format Terraform check.

This adds hashicorp/setup-terraform@v3 between the checkout and the fmt step. It also covers the second terraform fmt in the "Output to summary" step.

Found while working on dvsa/av-backend (Terraform foundation PR). The workflow has no workflow_call inputs, so there was nothing a caller could pass in to work around it.

Related issue: AVACT-47

Before submitting (or marking as "ready for review")

  • Does the pull request title follow the conventional commit specification?
  • Have you performed a self-review of the code
  • Have you have added tests that prove the fix or feature is effective and working (not run

@sdh100shaun
sdh100shaun merged commit 093dd80 into dvsa:main Nov 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants