scalr/Scalr Github Action
Installs Scalr and OpenTofu/Terraform CLI and configures them for Scalr use.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| scalr_hostname | The hostname of a Scalr install. Example: username.scalr.io. | yes | — |
| scalr_token | The API token to use. | yes | — |
| scalr_workspace | The Scalr workspace ID you plan on working in. This is required if you want to autodetect the OpenTofu/Terraform version unless you provide scalr_workspace_name and scalr_environment_name instead. | no | — |
| scalr_workspace_name | The Scalr workspace name to resolve. Must be used together with scalr_environment_name. | no | — |
| scalr_environment_name | The Scalr environment name that contains scalr_workspace_name. Must be used together with scalr_workspace_name. | no | — |
| iac_platform | Specifies if you want to use the tofu or terraform platform. | no | terraform |
| binary_version | The concrete version of OpenTofu/Terraform CLI to install. Leave empty and provide scalr_workspace to autodetect from Scalr. | no | — |
| binary_wrapper | Whether or not to install a wrapper to wrap subsequent calls of the `tofu/terraform` binary and expose its STDOUT, STDERR, and exit code as outputs named `stdout`, `stderr`, and `exitcode` respectively. Defaults to `true`. | no | true |
| binary_output | Export OpenTofu/Terraform output variables as Action output variables. | no | false |
| terraform_version | Deprecated. Use `binary_version` instead. | no | — |
| terraform_wrapper | Deprecated. Use `binary_wrapper` instead. | no | true |
| terraform_output | Deprecated. Use `binary_output` instead. | no | false |
| pr_comment | Post terraform/tofu plan output as a PR comment. GITHUB_TOKEN is injected automatically. Only fires on pull_request and pull_request_target events. | no | false |
Outputs
| name | description |
|---|---|
| stdout | STDOUT from the last tofu/terraform command (requires binary_wrapper: true). |
| stderr | STDERR from the last tofu/terraform command (requires binary_wrapper: true). |
| exitcode | Exit code from the last tofu/terraform command (requires binary_wrapper: true). |