Moving on to branch deployments, we’re getting an ...
# dagster-plus
e
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 <http://ghcr.io/dagster-io/dagster-cloud-action:0.1.26|ghcr.io/dagster-io/dagster-cloud-action:0.1.26>
Traceback (most recent call last):
  File "/create_or_update_comment.py", line 81, in <module>
    main()
  File "/create_or_update_comment.py", line 33, in main
    pr = repo.get_pull(pr_id)
  File "/usr/local/lib/python3.8/site-packages/github/Repository.py", line 2835, in get_pull
    headers, data = self._requester.requestJsonAndCheck(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 398, in requestJsonAndCheck
    return self.__check(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 423, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 403 {"message": "Resource not accessible by integration", "documentation_url": "<https://docs.github.com/rest/reference/pulls#get-a-pull-request>"}
1
s
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
permissions:
  pull-requests: write
as described here: https://dagster.slack.com/archives/C01U954MEER/p1682062010183369?thread_ts=1681980360.853649&amp;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".
e
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