Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Deploy React app using GitHub actions, Workload identity and Cloud Run

Hello everyone,
I hope someone can help

When I try to do a docker push to an Artifact Registry repository using GitHub Actions, I get this error:

Unauthenticated request. Unauthenticated requests do not have permission "artifact registry.repositories.upload Artifacts" on resource "projects/react-cloud-run-deploy-452614/locations/us/repositories/gcr.io" (or it may not exist)

This is the GitHub Actions YAML:

SalomonGuttmann_3-1741354750758.png

I add the following permissions in the service account gcp-github-actions@react-cloud-run-deploy-452614.iam.gserviceaccount.com:

SalomonGuttmann_1-1741354402051.png

 I create also an identity pool and an identity provider

SalomonGuttmann_2-1741354657314.png

Thanks for any advice

 

 

 

0 4 800