Closed omer-niv-cc closed 2 years ago
Thanks for the report @omer-niv-cc Nothing jumps out to me so requesting a few details
token_format: 'access_token'
to auth
. This will make the auth action generate an access token. This could help diagnose if its a WIF misconfiguration issue.Hey @bharathkkb - I actually think the issue is in the setup-cloud-sdk package. I think we might be unintentionally swallowing output on some of the gcloud commands, including initial setup. I've created https://github.com/google-github-actions/setup-cloud-sdk/pull/77 to clean that up, but we'll need to do a full release + update of setup-gcloud.
@sethvargo yeah that should help. I was thinking the error maybe here stemming from a WIF misconfig and the error got swallowed.
@bharathkkb @sethvargo In did it was an issue with WIF misconfiguration (I pointed to Workload Identity Pool instead of the provider) so all good now.. thanks guys!
TL;DR
gcloud setup action failed after successful authentication with google-github-actions/auth@v0 action.
google-github-actions/setup-gcloud failed with: The process '/opt/hostedtoolcache/gcloud/371.0.0/x64/bin/gcloud' failed with exit code 1
Expected behavior
Should be able to setup gcloud after auth action.
Observed behavior
Setup gcloud action failed during installation.
Action YAML
Log output
Additional information
I followed the Readme instructions to create Workload Identity Federation.