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

Fixed invalid default hostname for gh auth token #1906

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

jkstpierre
Copy link
Contributor

Resolves #1905


Before the change?

The current default hostname for getting the authentication token from GitHub CLI is "api.github.com"

After the change?

The default hostname is set to "github.com" which is the correct default hostname for gh auth login.

Does this introduce a breaking change?

There should be no breaking changes contained in this PR.


jkstpierre and others added 2 commits September 18, 2023 16:31
Currently in the event that no base_url is given to the provider configuration, the tokenFromGhCli() function will set a default hostname of "api.github.com" which is invalid for the "gh auth token" cli command. Instead, the proper default hostname should be "github.com" which is correct and works.
Copy link
Contributor

@nickfloyd nickfloyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch @jkstpierre, thank you for this contrib ❤️

@nickfloyd nickfloyd added the Type: Bug Something isn't working as documented label Sep 21, 2023
@nickfloyd nickfloyd merged commit ed19ae8 into integrations:main Sep 21, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Incorrect default hostname for tokenFromGhCli() function
2 participants