Audience should be exposed when using WIF
TL;DR
We want to be able to use a custom audience to use our WIF.
Detailed design
If a Workload Identity Federation filters on a non default audience, this action will fail because it will present //iam.googleapis.com/projects/xxx/locations/global/workloadIdentityPools/yyy/providers/zzz where x is the project number, y the project id and z the provider id.
We need to expose the audience parameter (same as auth)
Additional information
No response
🤖 Hi @DucretJe, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.
I can pick this up. Plan is to add a gcp_audience input and hand it to the auth action's existing audience input, which already falls back to the provider when it's empty so nothing changes for anyone who leaves it unset. I'd also make the input validation step warn if it's set without a workload identity provider, since it would just be ignored otherwise. Shout if you'd rather it be named differently.