Skip to content

Support configuring impersonated token lifetime in generated WIF credentials #540

Open

Description

@7hokerz

TL;DR

Allow configuring the service account access token lifetime in the generated WIF credentials file for downstream tools such as gcloud.
Currently, access_token_lifetime only applies to the action's access_token output.

Detailed design

The generated WIF credentials file does not currently specify an impersonated token lifetime, so downstream tools such as gcloud use the default of 1 hour. Allowing shorter lifetimes would reduce how long a leaked access token remains usable.

An optional input such as service_account_impersonation_lifetime could set service_account_impersonation.token_lifetime_seconds in the generated file. This would avoid manually modifying the JSON while preserving existing behavior when omitted.

Additional information

I'm happy to submit a PR if this approach is acceptable.

Activity

  1. github-actions commented on Oct 11, 2026

    @github-actions

    Hi there @7hokerz 👋!

    Thank you for opening an issue. Our team will triage this as soon as we can. Please take a moment to review the troubleshooting steps which lists common error messages and their resolution steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions