79696568

Date: 2025-07-10 06:16:28
Score: 0.5
Natty:
Report link

Thank you all,
The root cause is not clarifying enough to set SA to triggers.

From Official documents, how you use update SA (or other metadata)
It indicates to use like below.

For example,
When my service account is [email protected] , and it exist at specific projects like star .

gcloud beta builds triggers update cloud-source-repositories \
  {SA Hash} \
  --region={REGION} \
  --service-account={SA_ACCOUNT}

Wrong version:

gcloud beta builds triggers update cloud-source-repositories \
  {SA Hash} \
--region={REGION} \
[email protected]

Right version:

gcloud beta builds triggers update cloud-source-repositories \
  {SA Hash} \
--region={REGION} \
--service-account=projects/star/serviceAccounts/[email protected]

You can see that it's clear that which project's SA account will be assigned.

----

Also I found other way to update SA account, which using yaml file from export command.

Both works fine with me, If you need to change tons of triggers you might want to create script for automation.

Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Yunyeong Kim