Hey, this is a known issue. The token the cloud agent gets in the sandbox environment does not include the issues scope, so gh issue list and gh issue view fail with “Resource not accessible by integration”. The team is aware.
Related reports:
- Cloud Agent not able to load GitHub issue
- Pull request create failed: GraphQL: Resource not accessible by integration (createPullRequest)
Two workarounds:
-
Paste the issue content (title, description, comments) directly into the agent prompt instead of asking it to fetch it by number.
-
Create a Personal Access Token at Sign in to GitHub · GitHub with the needed scopes and add it as an environment variable
GH_TOKEN=ghp_...in your cloud environment settings. After that, theghCLI will use that token instead of the built-in one.
Let me know if either of these helps.