Skip to content

Commit 6384b34

Browse files
authored
Document ID Token lifetimes (#433)
Closes #432
1 parent f112390 commit 6384b34

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ Cloud as an output for use in future steps in the workflow. These options only
191191
apply to ID tokens generated by this action. By default, this action does not
192192
generate any tokens.
193193
194+
> [!CAUTION]
195+
>
196+
> ID Tokens have a maximum lifetime of 10 minutes. This value cannot be changed.
197+
194198
- `service_account`: (Required) Email address or unique identifier of the
195199
Google Cloud service account for which to generate the ID token. For
196200
example:
@@ -333,8 +337,8 @@ In this setup, the Workload Identity Pool has direct IAM permissions on Google
333337
Cloud resources; there are no intermediate service accounts or keys. This is
334338
preferred since it directly authenticates GitHub Actions to Google Cloud without
335339
a proxy resource. However, not all Google Cloud resources support `principalSet`
336-
identities. Please see the documentation for your Google Cloud service for more
337-
information.
340+
identities, and the resulting token has a maximum lifetime of 10 minutes. Please
341+
see the documentation for your Google Cloud service for more information.
338342
339343
[![Authenticate to Google Cloud from GitHub Actions with Direct Workload Identity Federation](docs/google-github-actions-auth-direct-workload-identity-federation.svg)](docs/google-github-actions-auth-direct-workload-identity-federation.svg)
340344

0 commit comments

Comments
 (0)