hashicorp / hashicorp/tfc-workflows-github

Workflow for updating Terraform required_version?

Open
#41 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
178
Forks
30
PR merge metrics
No merged PRs in 30d

Description

Would it make sense to have an option in the `create-run` action to use the version set in the Terraform config i.e. `required_version`?

```
terraform {
required_version = "1.6.5"
}
```

Currently, when I update `required_version` in a pull request the Speculative Plan fails because of the workspace is currently using Terraform 1.3.6:
![image](https://github.com/hashicorp/tfc-workflows-github/assets/1280116/42b00747-a6c6-48f5-a12d-65f790044a47)

---

From Terraform Cloud I can retry the run but the Pull Request workflow run will still be marked as failed.

![image](https://github.com/hashicorp/tfc-workflows-github/assets/1280116/8fbd2ec7-c56a-4411-af15-430d272e24b4)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.