Permission 'cloudbuild.connections.update' denied

Hey, guys. I’m trying to follow along the Arcade QwikLab “Deploy a Hugo Website with Cloud Build and Firebase Pipeline”

DISCLAIMER: The lab has ended so any IDs or secrets in this post are no longer meaningful.

In the linux instance via SSH I’ve entered:

“gcloud builds connections create github cloud-build-connection --project=$PROJECT_ID --region=$REGION

gcloud builds connections describe cloud-build-connection --region=$REGION”

Which returned among others, the actionURI, which I have attempted navigating to in same browser (chrome)-new tab, as well as in Safari. All in incognito mode.

In Chrome (incognito) I have the student account for the lab and in Safari I have only my personal account. Either way, when I click continue:

I always get Permission ‘cloudbuild.connections.update’ denied.

Thanks in advance!

1 Like

Hello @Samfrancode ,

When you are building a connection between Cloud Build and your Github repository, you have to explicitly choose repo “my_hugo_site”.

So please :

1. Go to Cloud Build → Repositories

2. Click on three dots next to “cloud-build-connection” and pick “Continue setup

3. You will get a popup. Click continue

4. Once done, you will see next popup window with option to pick all repositories in your github OR specifically one repo. YOU HAVE TO pick “ Only select repositories” and pick my_hugo_site. Then hit “Install”

5 You will see that connection has been established

6 Back to VM shell and paste last command
gcloud builds repositories create hugo-website-build-repository
–remote-uri=“``https://github.com/${GITHUB_USERNAME}/my_hugo_site.git”``
–connection=“cloud-build-connection” --region=$REGION

Continue with following the instructions from lab. At the end you should see this score

and new page :slight_smile:

cheers,

Damian | GDE for Google Cloud