Skip to content

Commit

Permalink
Merge pull request #10 from rcwbr/5-workflow-gcp-auth-iam_permission_…
Browse files Browse the repository at this point in the history
…denied

fix: apply wif identity ref syntax
  • Loading branch information
rcwbr authored Oct 8, 2024
2 parents 00944fc + 2777e5d commit 3d488d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ locals {
// Identity (for plan permissions) for GitHub Actions from any branch of the repo
github_actions_plan_identity = "principalSet://iam.googleapis.com/${google_iam_workload_identity_pool.github_actions.name}/*"
// Identity (for apply permissions) for GitHub Actions from only the default branch (https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/about-security-hardening-with-openid-connect)
github_actions_apply_identity = "principalSet://iam.googleapis.com/${google_iam_workload_identity_pool.github_actions.name}/attribute.ref/${var.github_default_branch_name}"
github_actions_apply_identity = "principalSet://iam.googleapis.com/${google_iam_workload_identity_pool.github_actions.name}/attribute.ref/refs/heads/${var.github_default_branch_name}"

state_bucket_name = var.state_bucket_name != "" ? var.state_bucket_name : "${var.gcp_project}-opentofu-state"
}

0 comments on commit 3d488d0

Please sign in to comment.