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

"No authentication found" warning is thrown when using Application Default Credentials

isarkis opened this issue · comments

TL;DR

We use Application Default Credentials on our self-hosted runners. As such, we don't need to use google-github-actions/auth action. With such set up, google-github-actions/setup-gcloud throws the following warning:

Warning: No authentication found for gcloud, authenticate with google-github-actions/auth

Expected behavior

Warning shouldn't be thrown as we are already authenticated.

Observed behavior

Warning is thrown.

Action YAML

job:
  job_id:
    steps:
    - name: 'Set up Cloud SDK'
      uses: 'google-github-actions/setup-gcloud@v1'

    - name: 'Use gcloud CLI'
      run: 'gcloud info'

Log output

No response

Additional information

No response

Duplicate of #594