Skip to content

Fix GitHub integration gist creation returning HTTP 403 #224

Description

@josharian

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions