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

Don't send empty token/Bearer headers #12392

Merged
merged 1 commit into from Mar 9, 2023
Merged

Don't send empty token/Bearer headers #12392

merged 1 commit into from Mar 9, 2023

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Mar 9, 2023

Description

Fixes #12391

This looks to be the cause of the 401 responses from GitHub. When we refactored some code to add GitLab authorization headers we started sending half-filled headers when the envvars weren't set (e.g. Authorization = "token "). Looks like this was triggering GitHub to just blanket fail these requests to the /releases endpoint even though authorization wasn't even needed.

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@Frassle Frassle requested a review from ringods March 9, 2023 09:56
@pulumi-bot
Copy link
Contributor

Changelog

[uncommitted] (2023-03-09)

Bug Fixes

  • [cli/plugin] Fix sending empty tokens to GitHub API.
    #12392

@Frassle
Copy link
Member Author

Frassle commented Mar 9, 2023

bors merge

@bors
Copy link
Contributor

bors bot commented Mar 9, 2023

Build succeeded:

  • bors-ok

@bors bors bot merged commit 83361f5 into master Mar 9, 2023
@bors bors bot deleted the fraser/authHeaders branch March 9, 2023 10:45
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.

plugin install without a version fails with http 401
3 participants