Fix GitHub integration gist creation returning HTTP 403

GitHub issue #224 Feature Proposed skybrian2via discord Jul 29, 2026 View Discord message View GitHub mirror

Author: skybrian2 Channel: #feedback Link: https://discord.com/channels/1405685085923049482/1405686161791516873/1531854591858180391


Issue

When using gh gist create with a custom GH_HOST, the following error occurs:

Failed to create gist: HTTP 403: Resource not accessible by integration (https://links-git.int.exe.xyz/api/v3/gists)

Toggling between 'act as app' and 'act as user' modes does not resolve the issue. The error may be related to the GitHub integration having insufficient permissions or being restricted to certain repositories.

Context

This was reported in response to a suggestion to use gh gist create with the GitHub integration to grant a VM the ability to create gists. The user noted that cut and paste works as a workaround.

Expected Behavior

gh gist create should work seamlessly with the GitHub integration when GH_HOST is configured, returning a successful gist creation instead of a 403 error.

discord-bug

1 Comment

josharianvia github Jul 29, 2026

cc @vanreece