I’ve got the Google Cloud Build app installed in the account, and I can set up a connection and link a repository that I own, but is there any way to make a GCP repository that is linked against a public repo that I do not own? When I tried the following block:
resource "google_cloudbuildv2_repository" "python-docs-samples" {
project = local.gcp_project
location = local.gcp_region
name = "python-docs-samples"
parent_connection = google_cloudbuildv2_connection.my-connection.name
remote_uri = "https://github.com/GoogleCloudPlatform/python-docs-samples.git"
}
I get:
╷
│ Error: Error creating Repository: operation received error: error code "9", message: repository GoogleCloudPlatform/python-docs-samples does not exist or is not accessible to the Cloud Build GitHub App (installation ID 45355168), details: []
│ details: map[]
I have a similar block with a private repo I own that works fine.