I have a Github Action to submit my source-code to Google Cloud Build. The submission does work. The Cloud Build job is being triggered.
However the Github Action exits with an error. This is the error message:
ERROR: (gcloud.builds.submit) HTTPError 403: <?xml version='1.0' encoding='UTF-8'?><Error><Code>AccessDenied</Code><Message>Access denied.</Message><Details>*** does not have storage.objects.get access to the Google Cloud Storage object.</Details></Error>
I am using a custom service account. These are the roles I've assigned to it. I have no idea why the error is still thrown.
Cloud Build Service Account
Cloud Build Viewer
Environment User and Storage Object Viewer
Cloud Storage for Firebase Viewer
Storage Object Viewer
I read in another question that this issue has been solved by provided the role Viewer
but a role just called Viewer
does not exist - at least not in my role listing.
A little side question:
Is there a way to check what role is needed for a given cloud action? For example seeing this in my logs
storage.objects.get
I'd like to see what roles do provide access to this.