fix(ci): migrate to Terragrunt, gate GCP auth on credential availability - #35
Open
Pmaster-dev with Copilot wants to merge 1 commit into
Open
fix(ci): migrate to Terragrunt, gate GCP auth on credential availability#35Pmaster-dev with Copilot wants to merge 1 commit into
Pmaster-dev with Copilot wants to merge 1 commit into
Conversation
Copilot created this pull request from a session on behalf of
Pmaster-dev
August 3, 2026 13:53
View session
Pmaster-dev
marked this pull request as ready for review
August 3, 2026 14:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
google-github-actions/auth@v2fails whencredentials_jsonresolves to an empty string (secret not set, fork PRs). The plan job was unconditionally calling auth, causing the entire job to fail before any Terraform work ran.Changes
.github/workflows/terraform.ymlv0.68.9; replaces allterraformCLI calls withterragruntif: ${{ secrets.GCP_CREDENTIALS != '' }}steps.auth.outcome == 'success'— skipped cleanly instead of failing when credentials are absentterragrunt hclfmt) and PR comment run unconditionally so PRs without credentials still get partial feedbackterragrunt/**.github/workflows/reusable-terraform-deploy.ymlterraform init/plan/apply/outputwithterragruntequivalentsbackend-config/tfvars-fileinputs replaced byenv-dir(path to the Terragrunt environment directory)terragrunt/(new)terragrunt.hcl: configures GCS remote state and points atterraform/as the shared moduleenvironments/{dev,staging,production}/env.hcl+terragrunt.hcl: per-environment variable overrides viainclude "root"