Repository navigation
ci(iac): fix invalid workflow file and broken vultr template - #798
Merged
Merged
Conversation
iac.yml has failed with zero jobs on every run since it was added:
GitHub rejected the file because job-level env used ${{ runner.temp }},
and the runner context is not available in jobs.<id>.env. Export
TF_PLUGIN_CACHE_DIR from the cache step via $GITHUB_ENV instead.
Also pin tofu_version inline: .opentofu-version was removed in e55612e,
so setup-opentofu would fail right after the parse error is fixed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vultr/vultr provider v2.33.0 removed the legacy vultr_vpc2 resource and the instance vpc2_ids argument (vultr/terraform-provider-vultr#760). The template's "~> 2.0" constraint resolves to 2.33.x, so a fresh init failed validation. Switch to vultr_vpc / vpc_ids with the same subnet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
IaC Templates(.github/workflows/iac.yml) has failed with zero jobs on every run since it was added on 2026-08-24 (22 runs, e.g. 42531350496). GitHub rejected the file at parse time, which also made it ignore thepaths:filter and fire on every push.1. Invalid workflow file (root cause)
Both jobs set
TF_PLUGIN_CACHE_DIR: ${{ runner.temp }}/...in job-levelenv. Therunnercontext is not available injobs.<id>.env, so the whole workflow was rejected. The cache step now exportsTF_PLUGIN_CACHE_DIR=${RUNNER_TEMP}/...through$GITHUB_ENVinstead.2. Missing
.opentofu-versionsetup-opentofureadtofu_version_file: .opentofu-version, but that file was removed in e55612e. Pintofu_version: 1.12.6inline (the removed file's value, same style asterraform_versionin the compat job) and drop it from the path filters.3.
terraform/spec/vultr.tfno longer validatesvultr/vultr provider v2.33.0 removed
vultr_vpc2and the instancevpc2_idsargument (vultr/terraform-provider-vultr#760). The template's~> 2.0constraint resolves to 2.33.x, so a freshinitfailed. Switch tovultr_vpc(v4_subnet/v4_subnet_mask) +vpc_ids, same 10.10.10.0/24 subnet.Test plan
actionlintv1.7.12 (with shellcheck): 0 errors on all workflows./terraform/check validatelocally: 15/15 templates pass with OpenTofu 1.12.6 and Terraform 1.15.2IaC Templatesjobs pass on this PRapply; existing stacks re-applying will replace the VPC resource🤖 Generated with Claude Code