You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
update docs for workload identity federation with GAR
this is a last mile doc improvement for
#640.
it clarifies how to use direct identity federation in GAR without a
service account using `google-github-actions/auth@v2`.
Signed-off-by: David Montoya <davidmontoyago@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -227,8 +227,9 @@ You can authenticate with workload identity federation or a service account.
227
227
228
228
#### Workload identity federation
229
229
230
-
Your service account must have permission to push to GAR. Use the
231
-
`google-github-actions/auth`action to authenticate using workload identity as
230
+
Configure [Direct Workload Identity Federation](https://github.com/google-github-actions/auth/blob/v2.1.10/README.md#preferred-direct-workload-identity-federation) for GitHub Actions in Google Cloud and avoid long-lived GCP credentials.
231
+
Make sure to grant the [principal identity](https://cloud.google.com/iam/docs/workload-identity-federation#principal-types) enough permissions to the GAR repository (E.g.: `roles/artifactregistry.writer`).
232
+
Use the `google-github-actions/auth@v2` action to authenticate using workload identity as
> Replace `<workload_identity_provider>` with configured workload identity
263
-
> provider
268
+
> Set `WORKLOAD_IDENTITY_PROVIDER` to the configured workload identity provider. For steps to configure, [see here](https://github.com/google-github-actions/auth/blob/v2.1.10/README.md#inputs).
264
269
265
-
> Replace `<service_account>` with configured service account in workload
266
-
> identity provider which has access to push to GCR
267
-
268
-
> Replace `<location>` with the regional or multi-regional [location](https://cloud.google.com/artifact-registry/docs/repo-organize#locations)
269
-
> of the repository where the image is stored.
270
+
> Set `REGISTRY_URL` to the regional or multi-regional [repository URL](https://cloud.google.com/artifact-registry/docs/repo-organize#locations).
0 commit comments