mirror of
https://github.com/google-github-actions/auth.git
synced 2026-06-06 00:17:04 +00:00
Add example of attribute mapping repos
This commit is contained in:
parent
03500c2f23
commit
bbbd1424f7
1 changed files with 7 additions and 0 deletions
|
|
@ -193,6 +193,13 @@ the [gcloud][gcloud] command-line tool.
|
|||
to further restrict the authentication using `--attribute-condition`
|
||||
flags.
|
||||
|
||||
For example, you can map the attribute repository values (which can be
|
||||
used later to restrict the authentication to specific repositories):
|
||||
|
||||
```sh
|
||||
--attribute-mapping="google.subject=assertion.sub,attribute.repository=assertion.repository"
|
||||
```
|
||||
|
||||
1. Get the full ID for the Workload Identity Provider:
|
||||
|
||||
```sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue