Skip to content

Conversation

@denniwang
Copy link
Contributor

@denniwang denniwang commented Oct 8, 2025

ℹ️ Issue

Closes #19

📝 Description

terraform plan now saves error logs in a text file and adds it to the comments of a pr
terraform plan comments also show the name of the person pushing

✔️ Verification

We verified this by making a pr that caused an error and didn't have descriptive logs. After making changes, we were able to see the logs.
We tested the comments updating to show the correct username by having Yurika pushing to my branch and the github action bot commented with her name instead of Nour's or mine.

Bug:

in GHA Workflow:
Screenshot 2025-10-08 at 11 58 45 AM
Screenshot 2025-10-08 at 11 58 28 AM

in PR Comment:
Screenshot 2025-10-08 at 12 08 20 PM


Resolved to:

in GHA Workflow:
Screenshot 2025-10-08 at 12 32 40 PM

in PR Comment:
Screenshot 2025-10-08 at 1 31 07 PM

Notes

  • not sure why we have two comments on the prs, we didnt have any changes on the github module so not sure why we are getting a github actions bot comment
  • independent block

@denniwang denniwang marked this pull request as ready for review October 8, 2025 15:46
denniwang and others added 23 commits October 8, 2025 11:49
  - Auto-formatted .tf files with terraform fmt
  - Updated README.md with terraform-docs

  Co-authored-by: denniwang <denniwang@users.noreply.github.com>
This reverts commit fe338cd.
  - Auto-formatted .tf files with terraform fmt
  - Updated README.md with terraform-docs

  Co-authored-by: denniwang <denniwang@users.noreply.github.com>
  - Auto-formatted .tf files with terraform fmt
  - Updated README.md with terraform-docs

  Co-authored-by: denniwang <denniwang@users.noreply.github.com>
  - Auto-formatted .tf files with terraform fmt
  - Updated README.md with terraform-docs

  Co-authored-by: denniwang <denniwang@users.noreply.github.com>
  - Auto-formatted .tf files with terraform fmt
  - Updated README.md with terraform-docs

  Co-authored-by: denniwang <denniwang@users.noreply.github.com>
@denniwang denniwang changed the title testing new github username #19 Terraform Github Action bugs Oct 8, 2025
Yurika-Kan and others added 2 commits October 8, 2025 13:18
  - Auto-formatted .tf files with terraform fmt
  - Updated README.md with terraform-docs

  Co-authored-by: denniwang <denniwang@users.noreply.github.com>
Copy link
Collaborator

@nourshoreibah nourshoreibah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Awesome work!! Since Yurika's tf apply workflow is working now, and we don't want to incur extra charges, could you please delete the contents of test/main.tf? we can leave it as an empty file for people to test plans but don't want to actually create any resources

denniwang and others added 5 commits October 9, 2025 12:10
This reverts commit 2c409d4.
  - Auto-formatted .tf files with terraform fmt
  - Updated README.md with terraform-docs

  Co-authored-by: denniwang <denniwang@users.noreply.github.com>
  - Auto-formatted .tf files with terraform fmt
  - Updated README.md with terraform-docs

  Co-authored-by: denniwang <denniwang@users.noreply.github.com>
Copy link
Collaborator

@nourshoreibah nourshoreibah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Looks good to me!!

@nourshoreibah
Copy link
Collaborator

And thank you for being so thorough w/ the tests and screenshots 🐐🐐

@github-actions
Copy link
Contributor

Terraform Plan 📖 infrastructure/github

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Terraform Plan 📖success

Show Plan
data.infisical_secrets.github_folder: Reading...
data.infisical_secrets.infisical_folder: Reading...
data.infisical_secrets.aws_folder: Reading...
data.infisical_secrets.github_folder: Read complete after 0s
data.infisical_secrets.infisical_folder: Read complete after 0s
data.infisical_secrets.aws_folder: Read complete after 0s
github_repository.branch: Refreshing state... [id=branch]
github_actions_secret.infisical_client_id: Refreshing state... [id=branch:INFISICAL_CLIENT_ID]
github_actions_secret.aws_secret_access_key: Refreshing state... [id=branch:AWS_SECRET_ACCESS_KEY]
github_actions_secret.infisical_client_secret: Refreshing state... [id=branch:INFISICAL_CLIENT_SECRET]
github_branch_default.main: Refreshing state... [id=branch]
github_actions_secret.aws_access_key_id: Refreshing state... [id=branch:AWS_ACCESS_KEY_ID]
github_branch_protection.main: Refreshing state... [id=BPR_kwDOPjZxzc4D-9hQ]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Pushed by: @nourshoreibah, Action: pull_request

@github-actions
Copy link
Contributor

Terraform Plan 📖 infrastructure/test

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Terraform Plan 📖success

Show Plan
Acquiring state lock. This may take a few moments...

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Pushed by: @nourshoreibah, Action: pull_request

@nourshoreibah nourshoreibah merged commit 2d59f4f into main Oct 21, 2025
5 checks passed
@nourshoreibah nourshoreibah deleted the 19-terraform-github-bugs branch October 21, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address Terraform Plan GitHub Actions Workflow Bugs

3 participants