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

fix: octokit to use the correct enterprise url #844

Conversation

seehait
Copy link

@seehait seehait commented Jul 3, 2022

fixes #563

This is just a quick fix. We should define a new input to properly specify the custom server URL.

I found out that even when we override the GITHUB_SERVER_URL environment variable, the getDefaultBranch initializes a new Octokit client without the baseUrl value regarding GITHUB_SERVER_URL.
Thus, the checkout action fails when we try to checkout to a private Github Enterprise Server repository with a misguided error messages.

I don't know the precise reasons why we haven't allowing any action users to customize the server URL via input though.
So, any comments are welcome.

@seehait seehait force-pushed the fix/octokit-to-use-the-correct-enterprise-url branch from 144ee87 to aa195b1 Compare July 3, 2022 14:27
@seehait
Copy link
Author

seehait commented Jul 4, 2022

Need to setup a proper input anyway

@seehait seehait closed this Jul 4, 2022
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

Successfully merging this pull request may close these issues.

Is it possible to checkout to enterprise github repo from non enterprise public repo in github actions?
1 participant