step-security/OpenTofu - Setup Tofu

Sets up OpenTofu CLI in your GitHub Actions workflow.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
cli_config_credentials_hostnameThe hostname of a Terraform Cloud/Enterprise instance to place within the credentials block of the OpenTofu CLI configuration file. Defaults to `app.terraform.io`.noapp.terraform.io
cli_config_credentials_tokenThe API token for a Terraform Cloud/Enterprise instance to place within the credentials block of the OpenTofu CLI configuration file.no
tofu_versionThe version of OpenTofu CLI to install. If no version is given, it will default to `latest`.nolatest
tofu_version_filePath to a file containing the OpenTofu version to install. Takes precedence over `tofu_version` if both are provided.no
tofu_wrapperWhether or not to install a wrapper to wrap subsequent calls of the `tofu` binary and expose its STDOUT, STDERR, and exit code as outputs named `stdout`, `stderr`, and `exitcode` respectively. Defaults to `true`.notrue
cacheWhether to use GitHub Actions tool-cache to store and reuse downloaded OpenTofu binaries. Defaults to `false`.nofalse
github_tokenAPI token for GitHub to increase the rate limit. Defaults to the GITHUB_TOKEN environment variable unless running on Forgejo/Gitea.no""
provider_acceptance_testsWhether to automatically set environment variables for running OpenTofu provider acceptance tests (TF_ACC, TF_ACC_PROVIDER_NAMESPACE, TF_ACC_PROVIDER_HOST, TF_ACC_TERRAFORM_PATH). Defaults to `false`.nofalse
checksumsNewline-delimited list of valid checksums (SHA256 hashes) for the downloaded OpenTofu binary. When set, the action will verify that the binary matches one of these checksums before proceeding.no
namedescription
stdoutThe STDOUT stream of the call to the `tofu` binary.
stderrThe STDERR stream of the call to the `tofu` binary.
exitcodeThe exit code of the call to the `tofu` binary.