Add example of attribute mapping repos

This commit is contained in:
Seth Vargo 2021-09-21 12:23:39 -04:00
parent 03500c2f23
commit bbbd1424f7
No known key found for this signature in database
GPG Key ID: C921994F9C27E0FF

View File

@ -193,6 +193,13 @@ the [gcloud][gcloud] command-line tool.
to further restrict the authentication using `--attribute-condition` to further restrict the authentication using `--attribute-condition`
flags. 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: 1. Get the full ID for the Workload Identity Provider:
```sh ```sh