Fix WIF provider groups mapping
This commit is contained in:
parent
51f34c9a64
commit
5276b57c4d
2 changed files with 2 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ locals {
|
|||
|
||||
google_runner_wif_group_members = var.google_wif_runner_group != "" ? (
|
||||
toset([
|
||||
"principalSet://iam.googleapis.com/projects/${var.google_project_number}/locations/global/workloadIdentityPools/${var.google_wif_pool_id}/attribute.burrow_groups/${var.google_wif_runner_group}"
|
||||
"principalSet://iam.googleapis.com/projects/${var.google_project_number}/locations/global/workloadIdentityPools/${var.google_wif_pool_id}/group/${var.google_wif_runner_group}"
|
||||
])
|
||||
) : (
|
||||
toset([])
|
||||
|
|
@ -142,7 +142,6 @@ resource "google_iam_workload_identity_pool_provider" "forgejo_runners" {
|
|||
"attribute.burrow_subject" = "assertion.sub"
|
||||
"attribute.burrow_username" = "assertion.preferred_username"
|
||||
"attribute.burrow_email" = "assertion.email"
|
||||
"attribute.burrow_groups" = "assertion.groups"
|
||||
"attribute.burrow_client_id" = "assertion.azp"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue