Moving on to branch deployments, we’re getting an ...
# dagster-plus
Moving on to branch deployments, we’re getting an error around
Resource not accessible by integration
. Search through history it seems like this issue has cropped up before, but there wasn’t a posted fix that I saw. Is anyone aware of a work around for it?
Copy code
Status: Downloaded newer image for <|>
Traceback (most recent call last):
  File "/", line 81, in <module>
  File "/", line 33, in main
    pr = repo.get_pull(pr_id)
  File "/usr/local/lib/python3.8/site-packages/github/", line 2835, in get_pull
    headers, data = self._requester.requestJsonAndCheck(
  File "/usr/local/lib/python3.8/site-packages/github/", line 398, in requestJsonAndCheck
    return self.__check(
  File "/usr/local/lib/python3.8/site-packages/github/", line 423, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 403 {"message": "Resource not accessible by integration", "documentation_url": "<>"}
Hi Eric, This is likely a permissions issue. Can you try adding this permissions block at the top level in your `branch_deployments.yml`:
Copy code
  pull-requests: write
as described here:;cid=C01U954MEER I believe the default permissions are inherited from /settings/actions in your repo under "Workflow Permissions". As an alternative you can try setting that to "Read and write permissions".
thanks! I’ll give that a shot. I’ll also expand my search to #dagster-support next time instead of just #dagster-cloud
that did it, thanks @Shalabh Chaturvedi!
👍 1