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

Pull request pipeline not working on GitHub Enterprise Server due to default GitHub API URL #513

Open
mikael-andersson91 opened this issue Jul 4, 2023 · 2 comments

Comments

@mikael-andersson91
Copy link

mikael-andersson91 commented Jul 4, 2023

I have been attempting to use the pull request pipeline on GitHub Actions for repositories hosted on our GitHub Enterprise Server Instance and I continuously get this error:

⨯ pipeline: pr-pipeline, error: GET https://api.github.com/repos/RPA-Global/ActionsExperiment/commits/17af711881ebf25800eb6ceeee75937c36346c8c/pulls: 401 Bad credentials []

image

Seems like an indication that a hard-coded default URL for the GitHub API (api.github.com) is used instead of the GITHUB_SERVER_URL environment variable or the github.api_url from the github context for the relevant GET requests to look at the pull request. Maybe one of these options could be used to make commitsar more flexible for various GitHub hosting options?

@fallion
Copy link
Member

fallion commented Sep 5, 2023

We've not had an enterprise usecase yet, should be an easy fix.

@mikael-andersson91
Copy link
Author

Just curious, have you had a chance to look into this further?

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

No branches or pull requests

2 participants