Vanitha Annamalai
04/18/2023, 6:10 AMError creating webhook. response status=403 body=Forbidden. Either you are using a read only token for a request that requires a write token (the most likely cause), or you do not have the required permissions.
this is command I am executing. Any idea why the error? thankyou
pact-broker create-webhook <https://api.buildkite.com/v2/organizations/><org-name>/pipelines/<slug>/builds \
--header "Authorization: Bearer <token>" \
--request POST \
--consumer <consumer> \
--provider <provider> \
--broker-base-url <pactflow-url> \
--broker-token <admin user's token> \
--data '{
"branch": "branch",
"commit": "HEAD",
"message": "sample Consumer -> sample Provider",
"env": {
"PACT_URL": "${pactbroker.pactUrl}",
}
}' \
--contract-content-changed \
--team-uuid <uuid>Vanitha Annamalai
04/18/2023, 9:59 AM