Authentication using Application Default Creds does not export creds in subsequent steps

This issue has been tracked since 2023-02-17.

TL;DR

I am authenticating into setup-gcloud using Application default credentials because am running a self hosted runner on GCP.
I am trying to run helm gcs init command but it is not running and am getting permission denied.

Is it something wrong am doing or I do need to run the auth action and pass a key or workload identity to run helm gcs command.

Detailed design

No response

Additional information

No response

sethvargo wrote this answer on 2023-02-19

Hi @loayei

What permission errors are you getting? For Artifact Registry or Container Registry, you have to configure the Docker daemon auth. You can use gcloud or just google-github-actions/auth which would be faster since it doesn't need to download and install gcloud.

loayei wrote this answer on 2023-02-19

Its actually in storage buckets. so am getting a storage.object permission error.

does auth support application default credentials ? I tried it and it fails

sethvargo wrote this answer on 2023-02-19

It's very difficult to debug these kinds of things when you bypass the issue template. Please provide your complete Action YAML, and the debug log output.

loayei wrote this answer on 2023-02-19

Thanks for your response i was able to figure it out. I was not giving the runner service account the required permissions.
Thanks again

More Details About Repo
Owner Name google-github-actions
Repo Name setup-gcloud
Full Name google-github-actions/setup-gcloud
Language TypeScript
Created Date 2019-11-05
Updated Date 2023-03-23
Star Count 1505
Watcher Count 65
Fork Count 548
Issue Count 11

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date