google-cloud/auth-credentials 1.0.3

Authenticate to Google Cloud with credentials JSON

Parameters

Parameter
Required
Default
Description
credentials-json
*
The Service Account Key JSON used for authentication
project-id
The default project to select once authenticated

README.md

This leaf requires the Google Cloud CLI be installed. Mint provides the google-cloud/install-cli leaf.

To authenticate with Google Cloud using a service account's credentials JSON (in a secret):

tasks:
  - key: gcloud-login
    call: google-cloud/auth-credentials 1.0.3
    with:
      credentials-json: ${{ vaults.your-vault.secrets.GCP_CREDENTIALS_JSON }}

A project-id may optionally be provided to select an active project for gcloud:

tasks:
  - key: gcloud-login
    call: google-cloud/auth-credentials 1.0.3
    with:
      credentials-json: ${{ vaults.your-vault.secrets.GCP_CREDENTIALS_JSON }}
      project-id: identifier-of-my-project