Skip to content

ci!: standardise IaC on OpenTofu and finish the mise consolidation - #253

Merged
h13 merged 1 commit into
mainfrom
ci/opentofu-unification
Dec 1, 2026
Merged

h13 merged 1 commit into
mainfrom
ci/opentofu-unification

Conversation

@h13

@h13 h13 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Summary

Second of the two improvement PRs (follows #252 / v2.1.0). Implements the remaining items, with IaC unified on OpenTofu per the decision to retire the Terraform workflow.

  • OpenTofu unification: ci-terraform.yml deleted. ci-opentofu.yml gains the working-directory input and an authenticated tflint --init (GITHUB_TOKEN, avoids anonymous rate limits). The workflow template follows (ci-terraform.* → ci-opentofu.*)
  • publish-node back on setup-toolchain with cache: "false" (new input from v2.1.0) — same cache-free privileged path, one less direct mise-action reference
  • ci-markdown pins its linter: markdownlint-cli2 now comes from the caller's .mise.toml ("npm:markdownlint-cli2") instead of a floating npx install; this repo declares it (0.24.2) with the checksummed .mise/locks artifacts committed
  • workflow-templates normalised: all pins now @<sha> # vX.Y.Z (were stale @9b63cbc # main), and renovate.json adds workflow-templates/ to the github-actions manager so Renovate keeps them bumped
  • Internal action pins bumped to v2.1.0
  • Formatter guards: typos.toml + .prettierignore exclude *.lock and .mise/ — the pre-commit auto-fixers (typos, oxfmt) were rewriting generated lockfiles (devlop → develop, YAML reformat), which breaks the sha256 digests recorded in mise.lock. Verified: hook-simulated typos+oxfmt leave the lock byte-identical and its hash matches the recorded digest

Breaking changes

  • ci-terraform.yml is gone — call ci-opentofu.yml with opentofu/tflint declared in .mise.toml. Only caller is smallbiz-suite; its migration PR follows this release
  • ci-markdown.yml requires "npm:markdownlint-cli2" in the caller's .mise.toml. Only caller is this repo (already declared)

Test plan

  • actionlint + markdownlint-cli2 clean locally
  • Lockfile integrity: aube-lock.yaml sha256 == mise.lock digest; devlop intact after simulated hook run
  • This PR's CI: test-markdown exercises setup-toolchain@v2.1.0 + mise-installed markdownlint-cli2 end to end
  • After merge/release (v3.0.0): consumer pin-bump PRs (smallbiz-suite migrates to ci-opentofu)

- delete ci-terraform.yml and its workflow template; ci-opentofu.yml
  gains the working-directory input and an authenticated tflint --init
- publish-node returns to setup-toolchain with cache: false, now that
  the action has a cache opt-out
- ci-markdown runs markdownlint-cli2 from the caller's .mise.toml
  (npm backend) instead of a floating npx install
- workflow-templates pins normalised to the @<sha> # vX.Y.Z convention
  and brought under Renovate's github-actions manager via renovate.json

BREAKING CHANGE: ci-terraform.yml is gone — call ci-opentofu.yml with
opentofu/tflint declared in .mise.toml. ci-markdown.yml now requires
"npm:markdownlint-cli2" in the calling repository's .mise.toml.
@h13
h13 merged commit 1e41d76 into main Dec 1, 2026
3 checks passed
@h13
h13 deleted the ci/opentofu-unification branch December 1, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant