title: How Can I Obtain GCP service account credentials on Google Cloud Run?
body: <p><a href="https://cloud.google.com/docs/authentication/production#auth-cloud-implicit-nodejs" rel="nofollow noreferrer">This page</a> explains both:</p>
  
  <ol>
  <li><a href="https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually" rel="nofollow noreferrer">Obtaining and providing service account credentials manually</a> for developing local, deploying on-premises, or deploying to another public cloud.</li>
  <li><a href="https://cloud.google.com/docs/authentication/production#obtaining_credentials_on_compute_engine_kubernetes_engine_app_engine_flexible_environment_and_cloud_functions" rel="nofollow noreferrer">Obtaining credentials on Compute Engine, Kubernetes Engine, App Engine flexible environment, and Cloud Functions</a></li>
  </ol>
  
  <p>But there is no mention of obtaining credentials on Cloud Run. I'd appreciate it if you give instructions for obtaining credentials and setting firebase-admin <code>initializeApp</code> and firebase <code>initializeApp</code> for authentication on Cloud Run.</p>