terraform-example-foundation icon indicating copy to clipboard operation
terraform-example-foundation copied to clipboard

terraform plan truncated in github actions comments

Open nbugden opened this issue 1 year ago • 2 comments

TL;DR

The terraform plan generated in GitHub Actions is often truncated when the comment is posted to a PR. This is because the comment is posting the stdout for all environments not just the plan generated by terraform.

Expected behavior

Log the terraform plan as a separate text file for each environment and then use those files to create 1 comment per environment on the PR.

Observed behavior

One comment is created on the PR for all environments. This comment includes unnecessary logs related to the init which uses characters that could have been reserved for the plan.

Terraform Configuration

n/a

Terraform Version

n/a

Additional information

No response

nbugden avatar Mar 01 '24 20:03 nbugden

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Apr 30 '24 23:04 github-actions[bot]

Still open

nbugden avatar Apr 30 '24 23:04 nbugden

Fixed in #1129

eeaton avatar May 29 '24 16:05 eeaton