Skip to content

Commit

Permalink
Merge pull request #4 from deseretdigital/ian/fixwipp
Browse files Browse the repository at this point in the history
Move Fixes from Other Module
  • Loading branch information
IanKnighton authored Sep 23, 2024
2 parents 7f07d9d + f5f7e31 commit 85585c9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ terraform {
source = "hashicorp/google-beta"
version = "~> 4.76"
}

random = {
source = "hashicorp/random"
version = "3.4.3"
Expand Down Expand Up @@ -45,14 +44,16 @@ resource "google_iam_workload_identity_pool_provider" "oidc_provider" {
workload_identity_pool_id = google_iam_workload_identity_pool.pool.workload_identity_pool_id
workload_identity_pool_provider_id = "${google_service_account.service_account.account_id}-provider"
attribute_mapping = {
"google.subject" = "assertion.sub",
"attribute.actor" = "assertion.actor",
"attribute.repository" = "assertion.repository"
"google.subject" = "assertion.sub",
"attribute.actor" = "assertion.actor_id",
"attribute.repository" = "assertion.repository",
"attribute.repository_id" = "assertion.repository_id",
"attribute.repository_owner" = "assetion.repository_owner",
"attribute.repository_owner_id" = "assertion.repository_owner_id",
}
oidc {
issuer_uri = "https://token.actions.githubusercontent.com"
}
project = var.project
}

resource "google_service_account_iam_member" "workload_identity_pool_iam" {
Expand Down

0 comments on commit 85585c9

Please sign in to comment.