Skip to content

Commit 387946d

Browse files
authored
Merge pull request #1 from rrednaxela/master
Update attribute mappings to match assertions
2 parents a05ede1 + 63a06f9 commit 387946d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ Attribute mapping:
6767
|------------------------|-------------------------------------------------------|
6868
| `google.subject` | `assertion.sub` |
6969
| `attribute.sub` | `assertion.sub` |
70-
| `attribute.actor` | `assertion.actor` |
7170
| `attribute.repository` | `assertion.project_path` (not `assertion.repository`) |
71+
| `attribute.user_login` | `assertion.user_login` |
72+
| `attribute.ref` | `assertion.ref` |
7273

7374
<!-- BEGIN_TF_DOCS -->
7475
## Providers

main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,15 @@ resource "google_iam_workload_identity_pool_provider" "provider" {
7070

7171
attribute_mapping = {
7272
"google.subject" = "assertion.sub"
73-
"attribute.sub" = "attribute.sub"
74-
"attribute.actor" = "assertion.actor"
73+
"attribute.sub" = "assertion.sub"
74+
"attribute.user_login" = "assertion.user_login"
7575
"attribute.repository" = "assertion.project_path"
76+
"attribute.ref" = "assertion.ref"
7677
}
7778
oidc {
7879
allowed_audiences = [var.allowed_audiences]
7980
issuer_uri = var.issuer_uri
8081
}
8182

8283
depends_on = [google_iam_workload_identity_pool.pool]
83-
}
84+
}

0 commit comments

Comments
 (0)