-
Notifications
You must be signed in to change notification settings - Fork 89
Ground Maintainer's Guide
Gino Miceli edited this page Jul 1, 2024
·
6 revisions
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
- Navigate to https://console.cloud.google.com/iam-admin/serviceaccounts and select the dev service account.
- Open the service account of the same name. This is the service account responsible for deploying to Firebase Hosting via Github.
- Run the following command:
gcloud iam service-accounts keys create /tmp/gnd-key.json --iam-account=<account-name>@appspot.gserviceaccount.com --project=<firebase-project>
- 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.
- 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. - Save and Done. You can now rerun the failing GitHub Action.