Skip to content

Commit 68ea0a7

Browse files
committed
Update attribute mappings to match assertions
1 parent a05ede1 commit 68ea0a7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ Attribute mapping:
6666
| Attribute | Claim |
6767
|------------------------|-------------------------------------------------------|
6868
| `google.subject` | `assertion.sub` |
69-
| `attribute.sub` | `assertion.sub` |
70-
| `attribute.actor` | `assertion.actor` |
7169
| `attribute.repository` | `assertion.project_path` (not `assertion.repository`) |
70+
| `attribute.user_login` | `assertion.user_login` |
71+
| `attribute.branch` | `assertion.ref` |
7272

7373
<!-- BEGIN_TF_DOCS -->
7474
## Providers

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ 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.user_login" = "assertion.user_login"
7574
"attribute.repository" = "assertion.project_path"
75+
"attribute.branch" = "assertion.ref"
7676
}
7777
oidc {
7878
allowed_audiences = [var.allowed_audiences]

0 commit comments

Comments
 (0)