Application Default Credentials

Instead of a service account key, you might also generate “Application Default Credentials” on your machine.

To install these on your workstation, run

gcloud auth application-default login

at your terminal, as described in these gcloud docs. That’s it!