google-github-actions / setup-gcloud

A GitHub Action for installing and configuring the gcloud CLI.
https://cloud.google.com/sdk/docs
Apache License 2.0
1.71k stars 510 forks source link

Skip raising warning 'No authentication found' for Application Default Credentials #646

Closed vmotso closed 1 year ago

vmotso commented 1 year ago

TL;DR

We are using self-hosted runners with Application Default Credentials Everything works great, but we ran this action many times in parallel and got a lot of warnings in annotations:

warnings

and we miss useful information that we print in the annotations.

Expected behavior

We expect no warning to be printed for Application Default Credentials.

Observed behavior

No response

Action YAML

- name: Set up gcloud
  uses: google-github-actions/setup-gcloud@v1
  with:
    install_components: beta

Log output

No response

Additional information

Maybe something like this:

    - name: Set up gcloud
      uses: google-github-actions/setup-gcloud@v1
      with:
        install_components: beta
        auth: skip

would be nice to have.

sethvargo commented 1 year ago

Duplicate of https://github.com/google-github-actions/setup-gcloud/issues/594.