Releases: dflook/terraform-github-actions
v1.46.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dflook/terraform-plan@v1.46.0
with:
path: my-terraform-configYou can specify an action version as:
@v1.46.0to use exactly this release@v1.46to use the latest patch release for this specific minor version@v1to use the latest patch release for this specific major version
Changes
Added
-
Support for Terraform 1.10 ephemeral input variables.
Terraform 1.10 introduced ephemeral values, which are not stored in the plan or state file.
Ephemeral variables now work correctly with dflook/terraform-apply.
These can be set normally using thevariablesinput.
v1.45.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dflook/terraform-plan@v1.45.0
with:
path: my-terraform-configYou can specify an action version as:
@v1.45.0to use exactly this release@v1.45to use the latest patch release for this specific minor version@v1to use the latest patch release for this specific major version
Changes
Added
dflook/tofu-*actions can now read the OpenTofu version from a tofuenv.opentofu-versionfile in the module path.
See the dflook/tofu-version for details.
v1.44.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dflook/terraform-plan@v1.44.0
with:
path: my-terraform-configYou can specify an action version as:
@v1.44.0to use exactly this release@v1.44to use the latest patch release for this specific minor version@v1to use the latest patch release for this specific major version
Changes
Added
- Outdated comments are now minimised in the GitHub UI, making it easier to find the most recent plan.
v1.43.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dflook/terraform-plan@v1.43.0
with:
path: my-terraform-configYou can specify an action version as:
@v1.43.0to use exactly this release@v1.43to use the latest patch release for this specific minor version@v1to use the latest patch release for this specific major version
Changes
Added
-
New dflook/terraform-test and dflook/tofu-test actions.
These can be used to run automated tests on Terraform/OpenTofu modules using the built-in
testcommand.
v1.42.1
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dflook/terraform-plan@v1.42.1
with:
path: my-terraform-configYou can specify an action version as:
@v1.42.1to use exactly this release@v1.42to use the latest patch release for this specific minor version@v1to use the latest patch release for this specific major version
Changes
Fixed
-
required_versionconstraints that prefix the version number withvnow work correctly.Previously a
required_versionconstraint like>=v1.0.0would not be recognised as a valid constraint.
This does not appear to be documented anywhere, but Terraform does accept them.
v1.42.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dflook/terraform-plan@v1.42.0
with:
path: my-terraform-configYou can specify an action version as:
@v1.42.0to use exactly this release@v1.42to use the latest patch release for this specific minor version@v1to use the latest patch release for this specific major version
Changes
Added
-
A new
GITHUB_DOT_COM_TOKENenvironment variable may be set to an authentication token to use for GitHub.com API requests.This is only useful to avoid rate limiting when using the actions with GitHub Enterprise together with OpenTofu.
Normally the
GITHUB_TOKENenvironment variable is used for API requests. When using GitHub Enterprise, theGITHUB_TOKENis the token for the GitHub Enterprise instance, and not the GitHub.com API.
OpenTofu requires the GitHub.com API to fetch release information.
v1.41.2
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dflook/terraform-plan@v1.41.2
with:
path: my-terraform-configYou can specify an action version as:
@v1.41.2to use exactly this release@v1.41to use the latest patch release for this specific minor version@v1to use the latest patch release for this specific major version
Changes
Fixed
-
Integration with Terraform cloud workspaces using Terraform >=1.6.
Previously, applying a plan to a Terraform cloud workspace that used Terraform >=1.6 would fail.
v1.41.1
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dflook/terraform-plan@v1.41.1
with:
path: my-terraform-configYou can specify an action version as:
@v1.41.1to use exactly this release@v1.41to use the latest patch release for this specific minor version@v1to use the latest patch release for this specific major version
Changes
Fixed
- Reading the terraform version from a .tool-versions file in the workspace root. Previously this was only working when the .tool-versions file was in a subdirectory of the workspace.
v1.41.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dflook/terraform-plan@v1.41.0
with:
path: my-terraform-configYou can specify an action version as:
@v1.41.0to use exactly this release@v1.41to use the latest patch release for this specific minor version@v1to use the latest patch release for this specific major version
Changes
Added
- Downloaded OpenTofu checksum files are now verified using the OpenTofu public gpg key, beginning with OpenTofu v1.6.0.
v1.40.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dflook/terraform-plan@v1.40.0
with:
path: my-terraform-configYou can specify an action version as:
@v1.40.0to use exactly this release@v1.40to use the latest patch release for this specific minor version@v1to use the latest patch release for this specific major version
Changes
Added
-
An optional
plan_pathinput for dflook/terraform-apply, and matchingplan_pathoutput for dflook/terraform-plan.This allows passing the generated plan from the plan step to the apply step, if you have a secure place to store it.
The default behaviour when this is not set is unchanged - the apply step will generate a fresh plan and compare it to the plan from the PR comment.
By passing the plan from the plan step to the apply step, the apply step will skip generating a plan and use the passed plan instead.
It must still match the plan in the PR comment.This can be much faster than planning the same change twice, but is not necessarily a better choice. See the dflook/terraform-apply docs for details.
-
A new
to_importoutput for dflook/terraform-plan, which is the number of resources that would be imported by the plan.This joins the existing
to_add,to_change,to_destroyandto_moveoutputs.