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

Failed upload leaks credentials #85

Closed
bndw opened this issue Mar 14, 2018 · 6 comments
Closed

Failed upload leaks credentials #85

bndw opened this issue Mar 14, 2018 · 6 comments

Comments

@bndw
Copy link

bndw commented Mar 14, 2018

First, thanks for providing a simple tool for working with Github releases!

It appears that when using the upload command to a non-existent repository, the access_token is leaked in the error message. This is a problem when running this tool in an open-source project's CI system.

bin/linux/amd64/github-release
error: expected '200 OK' but received '404 Not Found' (url: https://api.github.com/repos/envoy-bot/envoy/releases?access_token=MY_ACCESS_TOKEN&per_page=100)
bndw added a commit to bndw/github-release that referenced this issue Mar 14, 2018
Signed-off-by: bndw <benjamindwoodward@gmail.com>
bndw added a commit to bndw/github-release that referenced this issue Mar 15, 2018
Fixes github-release#85

Signed-off-by: bndw <benjamindwoodward@gmail.com>
@jc21
Copy link

jc21 commented Feb 3, 2020

In addition to this, the access token should not be in the URL as it is deprecated. Github sent me a message about this today.

Since the project looks dead, looks like I'll be using one of the forks and if they don't fix this, I'll be forking the fork..

@alertedsnake
Copy link

In addition to this, the access token should not be in the URL as it is deprecated. Github sent me a message about this today.

Since the project looks dead, looks like I'll be using one of the forks and if they don't fix this, I'll be forking the fork..

@jc21 did you fork the fork? I need this fix as well :)

@kevinburke1
Copy link
Contributor

I thought I fixed this... is it not fixed?

@ocdtrekkie
Copy link

ocdtrekkie commented Oct 1, 2020

It's worth noting the official gh tool supports release management now, depending on your situation, switching to the official tool may be a good option now.

In my case, I found https://cli.github.com/manual/gh_release_create a perfectly serviceable replacement.

@alertedsnake
Copy link

@ocdtrekkie I just noticed that myself! So disregard my comments here, I'll use their tool instead.

@kevinburke1
Copy link
Contributor

apologies for the delay; I've just merged the fix

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 a pull request may close this issue.

5 participants