Chris Stryczynski
Chris Stryczynski

Reputation: 33861

Whats permissions are required to trigger a cloud build?

I'm trying to trigger a gcloud build however when invoked via curl with:

curl -X POST -T request.json -H "Authorization: Bearer ${gcloudBearer}" \
        https://cloudbuild.googleapis.com/v1/projects/"$PROJECT_ID"/triggers/"$TRIGGER_ID":run

I get a response of:

{
  "error": {
    "code": 403,
    "message": "The caller does not have permission",
    "status": "PERMISSION_DENIED"
  }
}

However the service account I have authenticated with has the following roles enabled:

Cloud Build Service Account

Do I need any additional permission / role? If so which role would this be?

Upvotes: 0

Views: 429

Answers (1)

Chris Stryczynski
Chris Stryczynski

Reputation: 33861

I had "quotes" around my project id by mistake (within the request.json file)... FML

Upvotes: 1

Related Questions