During build executed by Cloud Build I need to authenticate my custom Java code to use Google Cloud Storage API. The code uses Cloud Storage JSON API client.
I would like to use Cloud Build service account for authentication, but it's not clear how to achieve this in Java code without passing around service account key file as encrypted resource.
Is it possible to authenticate with Cloud Build service account from Java code that executed in Cloud Build docker container?