Closed SPTKL closed 1 year ago
Can you run gcloud storage buckets list
and provide the output? Since this occurs even when you manually authenticate, that potentially points to a bug in the Google Cloud SDK - was this previously working? Can you try a slightly older SDK version (e.g. 437.0.1) to see if the issue persists?
I'm getting
ERROR: (gcloud.storage.buckets.list) There was a problem refreshing your current auth tokens: ('Error code invalid_target: The target service indicated by the "audience" parameters is invalid. This might either be because the pool or provider is disabled or deleted or because it doesn\'t exist.', '{"error":"invalid_target","error_description":"The target service indicated by the \\"audience\\" parameters is invalid. This might either be because the pool or provider is disabled or deleted or because it doesn\'t exist."}')
seems like it might have to do with my WIF configurations, and not the actions, feel free to close this issue! thanks
Most likely - check out https://github.com/google-github-actions/auth/blob/main/docs/TROUBLESHOOTING.md. If that doesn't help, file an issue on https://github.com/google-github-actions/auth please. Thanks!
TL;DR
I have a workflow that's using
google-github-actions/auth@v1
with WIF andgoogle-github-actions/setup-gcloud@v1
, the authentication appears to be successful, however, gsutil throws Your credentials are invalid. Please run $ gcloud auth login when running a simple gsutil rsync commandExpected behavior
gsutil should be automatically authenticated after the authentication step using
google-github-actions/auth@v1
and all gsutil related commands should workObserved behavior
It appears that gsutil didn't pick up the creds created in the authentication step
Action YAML
Log output
Additional information
everything runs successfully up until the gsutil steps I also tried to add additional step
gcloud auth login --cred-file="$GOOGLE_APPLICATION_CREDENTIALS" --quiet
the command above ran successfully, however, the gsutil step still failed