My error is:
An error occurred in your build
error in CreateBuild: error in cb.CreateBuild: cloud build error: generic::permission_denied: com.google.net.rpc3.client.RpcClientException: APPLICATION_ERROR;google.devtools.cloudbuild.v1/ArgoAdminNoCloudAudit.CreateBuild;generic::permission_denied: Cloud Build Service Agent service-204009993429@gcp-sa-cloudbuild.iam.gserviceaccount.com is missing the “iam.serviceAccounts.getAccessToken” permission on the `build.service_account`; please grant it the role “roles/cloudbuild.serviceAgent” or “roles/iam.serviceAccountTokenCreator” in the service account project;AppErrorCode=7;StartTimeMs=1757126925829;unknown;ResFormat=uncompressed;ServerTimeSec=0.17770641;LogBytes=256;Non-FailFast;EndUserCredsRequested;EffSecLevel=privacy_and_integrity;ReqFormat=uncompressed;ReqID=f96b8c847f72681b;GlobalID=0;Server=[2002:a05:6671:ac82:b0:b84:d62b:2863]:4001
Google Cloud privileging system is pretty finicky. It’s great for security, but terrible for useability. You can’t publish because you don’t have permission to do it, you haven’t given your service account permission to do it. You have to go in your cloud settings and give your service account (that specific service account) get access token permission. The easiest way for me to figure out how to do it is to literally go to ChatGPT copy and paste your error in it and it will tell you exactly step by step how to fix it. Sometimes Gemini give you the right answer and sometimes it’ll just tell you it can’t help you or it can’t do it for you…. I spent hours trying to figure this out until I copied and pasted it in ChatGPT and told it talk to be like I was a Kindergartener, lol.
1 Like
Thank you! Yes, I’m pretty sure I’ve done this and those solutions never worked. I’ll try again though lol