gcb/ERR/2022_004

Cloud Build Service Agent has the cloudbuild.serviceAgent role.

Product: Cloud Build
Rule class: ERR - Something that is very likely to be wrong

Description

The Cloud Build service account is missing the cloudbuild.builds.builder role, which gives Cloud Build service account access to managed resources. You can resolve this error by granting the Cloud Build Service Agent (roles/cloudbuild.serviceAgent) IAM role to service-[PROJECT_NUMBER]@gcp-sa-cloudbuild.iam.gserviceaccount.com.

Remediation

Further information