Skip to content

Ground Maintainer's Guide

Gino Miceli edited this page Jul 1, 2024 · 6 revisions

Renewing the Ground GitHub deployment key

This applies when you see failures on the deploy-to-firebase-on-merge action. Typically, you would see errors of the form:

"error": "Failed to authenticate, have you run firebase login?"

To fix this, you need to renew the key for the service account used to deploy to Firebase

  1. Navigate to https://console.cloud.google.com/iam-admin/serviceaccounts and select the dev service account.
  2. Open the service account of the same name. This is the service account responsible for deploying to Firebase Hosting via Github.
  3. Run the following command:
gcloud iam service-accounts keys create /tmp/gnd-key.json --iam-account=<account-name>@appspot.gserviceaccount.com --project=<firebase-project>
  1. This will create a new active service account key, writing credentials to /tmp/gnd-key.json. Next, run:
cat /tmp/gnd-key.json

and copy the output to your clipboard.

  1. Then, go to https://github.com/google/ground-platform/settings/secrets/actions{:.external} and update the FIREBASE_SERVICE_ACCOUNT_GND_DEV secret by just pasting the JSON object you copied in step 5.
  2. Save and Done. You can now rerun the failing GitHub Action.
Clone this wiki locally