Skip to content
Branch: master
Find file Copy path
Find file Copy path
3 contributors

Users who have contributed to this file

@craigdbarber @imjohnbo @sullis
57 lines (39 sloc) 2.59 KB


This action configures the Google Cloud SDK in the environment for use in actions. The Google Cloud SDK includes both the gcloud and gsutil binaries.

It does the following:

  1. Downloads a version of the Google Cloud SDK according to the specified version input, as well as the environment OS and architecture.

  2. Installs and caches the downloaded version into the actions environment.

  3. (If service_account_key is specified), authenticates the gcloud CLI tool using the inputs: service_account_email and service_account_key. Further information on setting up GCP service accounts can be found here:


  • This action requires Python 2.7.9 or later to be installed on the environment.

  • A pre-configured GCP service account. More info


- uses: actions/checkout@v1
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
      version: '278.0.0'
      service_account_email: ${{ secrets.GCP_SA_EMAIL }}
      service_account_key: ${{ secrets.GCP_SA_KEY }}
- run: gcloud info


  • version: (Optional) The version of the gcloud to be installed. Example: 275.0.0, Default: latest

  • service_account_email: (Optional) The service account email which will be used for authentication.

  • service_account_key: (Optional) The service account key which will be used for authentication. This key should be created, encoded as a Base64 string (eg. cat my-key.json | base64 on macOS), and stored as a secret.

You can’t perform that action at this time.