Latest version breaks our build with credentials error

This issue has been tracked since 2021-12-08.

TL;DR

Started getting this error with version v0.3.0:

Error: google-github-actions/setup-gcloud failed with: Error parsing credentials: Unexpected end of JSON input
Ensure your credentials are base64 encoded or validate JSON format:

Expected behavior

No error and successful build

Observed behavior

Failed build

Action YAML

- name: Setup gcloud
        uses: google-github-actions/[email protected]
        with:
          export_default_credentials: true

Additional information

We were on master, and switching back to this fixes it for us:

      - name: Setup gcloud
        uses: google-github-actions/[email protected]
        with:
          export_default_credentials: true
bharathkkb wrote this answer on 2021-12-08

Hi @depsypher
This looks like google-github-actions/auth#73. Assuming you are using the auth action, could you remove the export_default_credentials: true from setup-gcloud. The auth action already does the export by default.

depsypher wrote this answer on 2021-12-08

Oops, sorry for the dupe. Yup, looks like that solves the problem. Thanks!

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