Skip to content

Instantly share code, notes, and snippets.

nikosev /
Last active Mar 27, 2019 — forked from josh-padnick/
Download a private binary release file from GitHub in bash
#!/usr/bin/env bash
# This is an adaptation of code I wrote to download a private binary from GitHub. Such...pain.
# Why can't GitHub just offer a standardized URL you can download a release binary from and attach
# your Github Personal Access Token as a header?
# Since this code is an adaptation it hasn't been directly tested, but the code it was adapted from works
# and hopefully you can get the missing piece you're after by looking here.

Keybase proof

I hereby claim:

  • I am nikosev on github.
  • I am nikosev ( on keybase.
  • I have a public key ASAEBJoBky1WcpBE28AGEPqloFzbE4pS1pZ1Vy7QShTeVAo

To claim this, I am signing this object: