Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cloud Build failed when using CB default SA

Hi

I recently run into an issue with Cloud Build, I have a build trigger that setup to be triggered by Cloud PubSub. Initially, it was setup without a SA, which builds were using default Cloud Build SA. However, recently, there is a change in the Cloud Build trigger that required specifying SAs when updating/creating the build trigger. I want to continue to use the Cloud Build default SA as it was assigned with specific permission.

The error I got is "Your build failed to run: generic::not_found: Unknown service account"

The service account is PROJECT_NUMBER@cloudbuild.gserviceaccount.com

Screen Shot 2024-06-29 at 5.06.20 PM.png

 

6 3 674
3 REPLIES 3

We are having the same problem on recently created projects. Did you find any solution?

Also having the same problem! Any fixes for either of you?

 having the same problem(
I can't say exactly what the problem is, but with the regions from the list "Restricted regions for some projects"   default and custom service accounts work without problems.
https://cloud.google.com/build/docs/locations