Setup-gcloud failing with Error 404

I’m attempting to setup-gcloud but seeing an opaque error.

Segment from config:

      - name: Setup gcloud CLI
        uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
        with:
          version: $GCLOUD_VERSION
          service_account_key: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
          project_id: "REDACTED"
          export_default_credentials: true

which results in the following:

##[debug]Loading env
Run GoogleCloudPlatform/github-actions/setup-gcloud@master
  with:
    version: $GCLOUD_VERSION
    service_account_key: ***
  
    project_id: REDACTED
    export_default_credentials: true
  env:
    GCLOUD_VERSION: 297.0.0
##[error]error code: 404
##[debug]Node Action run completed with exit code 1

It’s unclear how to debug this further.

This turned out to be an issue with environment variable not being usable. Updating to this works:

version: '297.0.0'
1 Like