mirror of
https://github.com/google-github-actions/auth.git
synced 2026-06-06 07:47:04 +00:00
Document admission for all repos of an owner (#279)
I really struggleded several days with this and thankfully i found https://github.com/google-github-actions/auth/issues/77#issuecomment-990371420 big thanks to @sethvargo ❤ as @dobromyslov already said, this should be documented so I went ahead and created added a paragrah for this use case --------- Signed-off-by: Daniel Brown <djbrown@users.noreply.github.com>
This commit is contained in:
parent
b0a71801d2
commit
5431d4afba
1 changed files with 8 additions and 0 deletions
|
|
@ -607,6 +607,14 @@ Terraform module to automate your infrastructure provisioning. See [examples](ht
|
|||
--role="roles/iam.workloadIdentityUser" \
|
||||
--member="principalSet://iam.googleapis.com/${WORKLOAD_IDENTITY_POOL_ID}/attribute.repository/${REPO}"
|
||||
```
|
||||
|
||||
If you want to admit all repos of an owner (user or organization), map on `attribute.repository_owner`:
|
||||
|
||||
```sh
|
||||
--member="principalSet://iam.googleapis.com/${WORKLOAD_IDENTITY_POOL_ID}/attribute.repository_owner/${OWNER}"
|
||||
```
|
||||
|
||||
For this to work, you need to make sure that `attribute.repository_owner` is mapped in your attribute mapping (see previous step).
|
||||
|
||||
Note that `$WORKLOAD_IDENTITY_POOL_ID` should be the **full** Workload
|
||||
Identity Pool resource ID, like:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue