v8.0.0: OpenTofu Support, Format and Validate
Highlights
- Implemented OpenTofu GitHub Action to deliver first-class support for
tofu
, while maintaining backwards-compatibility withterraform
. - Optional TF
fmt
andvalidate
steps available by default.
Added
TVP_CLI_USES=tofu
orTVP_CLI_USES=terraform
for users to choose betweenopentofu/setup-opentofu
orhashicorp/setup-terraform
.TVP_FMT_ENABLE
andTVP_VALIDATE_ENABLE
to toggle TFfmt
andvalidate
commands, respectively.- Diff of TF
fmt
command as a separate collapsible section in the PR comment. paths: ['**/*.tf*']
toon: pull_request
so that the workflow is only triggered when a PR contains changes to Terraform files.TVP_BACKEND_CONFIG_FROM_WORKSPACE
,TVP_BACKEND_CONFIG_PREFIX
, andTVP_BACKEND_CONFIG_SUFFIX
for consistency withTVP_VAR_FILE_
counterparts.
Changed
- References to "TF" from "Terraform", to be vendor-neutral with HashiCorp's and OpenTofu's offerings.
- PR labels prefix from
terraform:
totf:
, and change colour depending ontofu
(#FFDA18) orterraform
(#5C4EE5) usage. - Documentation to reflect changes to inputs.
Deprecated
CONFIG_TF_
prefixed variables toTVP_
prefix instead, to be consistent with Terraform/OpenTofu-Via-PR (TVP).
Secured
- Version support v8.0.0 and above.
peter-evans/find-comment
dependency by replacing withactions/github-script
.xt0rted/pull-request-comment-branch
dependency by replacing withactions/github-script
.myrotvorets/set-commit-status-action
dependency by replacing withactions/github-script
.
Commits changelog: v7.1.0...v8.0.0