borchero/Terraform Plan Comment

Post the output of `terraform plan` to a pull request comment.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 1, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: borchero/terraform-plan-comment@2d41e908725447b1677913001dfb92fa7010c025 # v3.1.0

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

namedescriptionrequireddefault
tokenThe token to use for authenticating against the GitHub API.yes
planfileThe path to the planfile whose changes to post.yes
terraform-cmdThe command to execute for calling the Terraform binary.yesterraform
working-directoryThe directory where the Terraform binary should be called.yes.
headerThe header to use for the pull request comment.yes📝 Terraform Plan
skip-emptyWhether to skip posting a pull request comment when no changes need to be performed.yesfalse
skip-commentWhether to skip posting a pull request comment entirely.yesfalse
pr-numberThe pull request number to post the comment to. When not provided, the action will attempt to automatically determine the PR number from the event context. This is useful for workflow_dispatch triggers.no""
expand-commentWhether to expand the comment details by default.yesfalse
namedescription
markdownThe raw markdown output of the terraform plan
emptyWhether the terraform plan contains any change or not
change-summaryA human-readable summary of the resource changes
num-resources-createdThe number of resources to be created
num-resources-updatedThe number of resources to be updated
num-resources-deletedThe number of resources to be deleted
num-resources-recreatedThe number of resources to be recreated
num-resources-ephemeralThe number of ephemeral resources
num-resources-importedThe number of resources to be imported