You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
manual run is fine - plan and apply works properly, both using OpenTofu
PR triggered plan is also fine, using OpenTofu
However: PR merge triggered apply keeps using Terraform - and this is the problem.
Excerpt from log:
WARNING: running in 'backendless' mode. No policies will be supported.
GitHub context parsed successfully
Digger digger_config read successfully
Following projects are impacted by pull request #17
- default
GitHub event processed successfully
GitHub event converted to commands successfully
Following commands are going to be executed:
project: default: commands: "digger apply",
Running 'digger apply' for project 'default' (workflow: my_custom_workflow)
PR status, mergeable: false, merged: true
Pre-apply plan retrieval: stored plan exists in artefact, retrieving
Running command: terraform [init -upgrade=true -input=false -no-color]
See above, running command "terraform" instead of "opentofu".
Workaround
It's not the nicest ever, but in the workflow I can fine-grain the "apply" steps to replace my terraform executable with tofu - so even though Digger keeps using terraform, it really is using tofu:
Problem
Digger continues to use Terraform instead of OpenTofu in specific scenario, even though
opentofu: true
is explicitly defined.Setup
GHA is as:
Documentation does not explicitly say but there is a need for the project to state
opentofu: true
for Digger to start using OpenTofu.So
digger.yaml
:After adding
opentofu: true
to the project:However: PR merge triggered apply keeps using Terraform - and this is the problem.
Excerpt from log:
See above, running command "terraform" instead of "opentofu".
Workaround
It's not the nicest ever, but in the workflow I can fine-grain the "apply" steps to replace my terraform executable with tofu - so even though Digger keeps using terraform, it really is using tofu:
The text was updated successfully, but these errors were encountered: