Skip to content

Authentication fails on GitHub Enterprise Server #90

@shanemalachow-SL

Description

@shanemalachow-SL

Looks like there's not proper handling of instances of GitHub Enterprise Server with regards to authentication and queries against the API. When authenticating to GitHub Enterprise Server installations with github3 you need to specifically use the GitHubEnterprise object and pass in the URL of the server, and then use that for the rest of the calls. Looks like the code in

def auth_to_github() -> github3.GitHub:
only really uses the default object, which will interact with the GitHub.com API. The environment variables should be able to be used to determine whether this is a GitHub.com workflow or an enterprise server workflow, specifically GITHUB_SERVER_URL which is already passed into the Docker environment for the action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions