marcosnils / bin

Effortless binary manager
MIT License
685 stars 46 forks source link

Downloading from private repos #121

Closed mbevc1 closed 2 years ago

mbevc1 commented 2 years ago

Using GITHUB_AUTH_TOKEN only resolves metadata, but doesn't fully work/download when using private repos. It's trying to download from https://github.com/org/repo/releases/download/version/binary and that would require pulling it down from assets URL rather than browser_download_url.

Example using curl:

curl -H "Authorization: token ghp_xxxxxxxxxx" -H "Accept: application/octet-stream" -O -L https://api.github.com/repos/org/repo/releases/assets/1111111
marcosnils commented 2 years ago

:wave: just released 0.11.0 with this functionality! thx for reporting this!

mbevc1 commented 2 years ago

Thanks for quick response @marcosnils! I'll give it a go :+1: