Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication fails on GitHub Enterprise Server #90

Closed
shanemalachow-SL opened this issue Aug 2, 2023 · 0 comments
Closed

Authentication fails on GitHub Enterprise Server #90

shanemalachow-SL opened this issue Aug 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@shanemalachow-SL
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants