crosswave-technology/Terraform Control

Run terraform init/plan/apply/destroy with summarized outputs.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 18, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: crosswave-technology/actionlibrary-terraform-control@0385dae6cd252a13b60c8c59f8b695c88f8c5964 # v1.1.4

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
working-directoryDirectory containing Terraform configuration.yes
commandTerraform command: plan, apply, destroy, validate, or fmt.noplan
terraform-versionTerraform version to install if not present (e.g. 1.7.5).no""
init-argsAdditional args for terraform init.no""
plan-argsAdditional args for terraform plan.no""
apply-argsAdditional args for terraform apply.no""
destroy-argsAdditional args for terraform destroy.no""
validate-argsAdditional args for terraform validate.no""
fmt-argsAdditional args for terraform fmt -check.no""
run-fmtRun terraform fmt -check before the command.nofalse
run-validateRun terraform validate before the command.nofalse
validate-on-planRun terraform validate before plan.notrue
checkov-enabledRun checkov scan before plan.notrue
checkov-frameworkCheckov framework to scan.noterraform
checkov-var-fileOptional Checkov var-file path (repo-relative).no.github/repo_config.tfvars
checkov-fail-severitiesComma-separated list of Checkov severities that fail the run.noCRITICAL,HIGH
comment-on-prPost a PR comment for plan results.notrue
pr-numberPR number to comment on when not running under pull_request.no""
auto-approveWhen true, add -auto-approve for apply/destroy.nofalse
emit-full-planWhen true, include full plan output in the action summary.nofalse
emit-summaryWhen true, include a structured summary in the action summary for plan/apply.notrue
emit-raw-planWhen true, include the raw plan output in the action summary.notrue
comment-section-idSection ID for the consolidated PR comment block (e.g. plan-123456789). When set, posts to a single consolidated comment instead of a standalone comment. Derived from working-directory slug when empty.no""
summary-max-linesMaximum diff lines per resource in the summary.no80
outputs-displayDisplay Terraform outputs: all, changes_only, or nothing.nochanges_only
git-modules-tokenOptional token for cloning private Terraform modules during init. When set, configures git credential helper before terraform init.no""
namedescription
plan_exit_codeExit code from terraform plan (0=clean,2=changes,1=error).
plan_has_changestrue when terraform plan detects changes.
plan_addResources to add.
plan_changeResources to change.
plan_destroyResources to destroy.
plan_summaryPlan summary string.
plan_fileAbsolute path to the plan file.
plan_text_fileAbsolute path to the rendered plan text.
plan_log_fileAbsolute path to the terraform plan log file.
trace_fileAbsolute path to the Terraform trace log file (if generated).
plan_error_countNumber of distinct Error: blocks detected in plan output.
plan_error_filePath to file containing extracted plan errors.
apply_exit_codeExit code from terraform apply.
apply_log_fileAbsolute path to the terraform apply log file.