Skip to content

The job will failed with "Terraform not installed" if terraformVersion is not specified #273

@rokoucha

Description

@rokoucha

Description

After the v7.0.0 release, the Job will fail with "Terraform not installed" if terraformVersion is not specified.
terraformVersion is listed as an optional input in the README, which is incorrect.
The stupid thing is that terraformVersion must match the version that actions/setup-terraform installs, not the input terraform_version.
The README sample also has a problem with the versions specified in actions/setup-terraform and terraformVersion, which do not match.

I think it's a bug.

GitHub Action Version

v7.0.3

Configuration

githubToken: ${{ secrets.GITHUB_TOKEN }}
mode: auto-approve-apply
stackName: some-stack
terraformCloudToken: ${{ secrets.TF_API_TOKEN }}

Gist

https://gist.github.com/rokoucha/c1c6d53ea5d7669bcdf727f7834f3e3d

Possible Solutions

If the terraformVersion is omitted, any version of Terraform should be accepted.

Workarounds

Specifying the exact version

Anything Else?

No response

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnewA new issue or feature request that has not yet been triaged by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions