google-github-actions / setup-gcloud

A GitHub Action for installing and configuring the gcloud CLI.

Home Page:https://cloud.google.com/sdk/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

loayei opened this issue · comments

commented

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

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.

commented

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

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.

commented

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