Forgejo action to setup OpenTofu - adapted from opentofu/setup-opentofu
Find a file
Radu C. Martin 6ee8df6d34
init: setup-opentofu composite action
Minimal Forgejo composite action that downloads and installs the
OpenTofu CLI binary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-05 22:59:08 +02:00
action.yml init: setup-opentofu composite action 2026-05-05 22:59:08 +02:00
LICENSE init: setup-opentofu composite action 2026-05-05 22:59:08 +02:00
README.md init: setup-opentofu composite action 2026-05-05 22:59:08 +02:00

Setup OpenTofu

Forgejo composite action that installs the OpenTofu CLI.

Usage

steps:
  - uses: https://git.martin.md/actions/action-setup-opentofu@main

  - run: tofu init && tofu validate

Pin a specific version

- uses: https://git.martin.md/actions/action-setup-opentofu@main
  with:
    tofu_version: '1.11.6'

Inputs

Name Description Default
tofu_version The version of OpenTofu to install 1.11.6