Skip to content

Add support for GitHub Enterprise #1066

@ksiom

Description

@ksiom

Hello,
While using this Action, I encountered the following error:

Looking for a draft release with tag v0.6.0-beta.1...
Couldn't find release with tag v0.6.0-beta.1. Creating one.
Uploading *****_0.6.0-beta.1_amd64.deb...
Error: Bad credentials - https://docs.github.com/rest

After inspecting the source code, I noticed that the getOctokit function is called without the baseUrl option, which causes the endpoint to default to https://api.github.com. This results in authentication failures when using GitHub Enterprise.

Would it be possible to add support for a configurable baseUrl in the getOctokit initialization to support GitHub Enterprise environments?

Thank you for your work on this project.

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