I am trying to download as a zip file a private GitHub repo.
I am trying:
curl -H "Authorization: token f19..." -L https://github.com/Mylab/name/archive/release.zip
curl -H "Authorization: token f19..." -L -o release.zip https://github.com/Mylab/name/archive/release.zip
This should solve your problem
curl -H "Authorization: token f19..." -Lk https://api.github.com/repos/Mylab/name/zipball/release -o release.zip
EDIT : you need to customize :
EDIT 2: you need to have a token that have the whole "repo" category ticked to grant you full access to private repositories
EDIT 3: beware there must be only one space between token and f19...