Eric Goddard
04/27/2023, 9:05 PMResource 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?
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>"}
Shalabh Chaturvedi
04/27/2023, 9:13 PMpermissions:
pull-requests: write
as described here:
https://dagster.slack.com/archives/C01U954MEER/p1682062010183369?thread_ts=1681980360.853649&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".Eric Goddard
04/27/2023, 9:19 PMEric Goddard
04/27/2023, 9:29 PM