Google api authentication

I’m having a problem authenticating Google API on Cloud Run using a service account.
I use the goth dependency.
This dependency, needs to be uploaded in server.
More that I’m not wanting, because the instance of the cloud run already has these credentials.

From what I’ve been researching Cloud Run uses ADC (Application Default Credentials).
Documentation Google
Has anyone managed to do this type of authentication in cloud run?

Would you have an example?

I’m looking for something like


import google.auth
credentials, project_id = google.auth.default(scopes=SCOPES)