user that needs updating, though like others, my project seems to be using an unexpected user as mine uses
{project-id}@cloudbuild.gserviceaccount.com
and I do mean {project-id} and not {project-name} !!
No idea why it is using this one or if this is configurable somewhere, but for anyone else landing here, if adding the permission to a user that makes sense doesn't work, it's worth going through testing the various service accounts one at a time to find the one that works.
There perhaps is a more clever way of determining the user, perhaps outputting it to the logs somehow. But there we are.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for posting this, helped me narrow down the issue much more quickly.
Interestingly this issue is actually referred to in the docs:
In the docs, they suggest that it's the
user that needs updating, though like others, my project seems to be using an unexpected user as mine uses
and I do mean {project-id} and not {project-name} !!
No idea why it is using this one or if this is configurable somewhere, but for anyone else landing here, if adding the permission to a user that makes sense doesn't work, it's worth going through testing the various service accounts one at a time to find the one that works.
There perhaps is a more clever way of determining the user, perhaps outputting it to the logs somehow. But there we are.