authentication - Pulling Github archive with Curl and Oauth token -
i want pull source files particular github repository , specific release (tag).
i use following command:
curl -v -l -o website.tar.gz -h "authorization: token mypersonaltoken" https://github.com/my_org/some_project/archive/0.1.tar.gz
but result 406 not acceptable.
the token i'm using personal token generated in private account. archive i'm pulling in account, have admin rights.
if use:
curl -v -l -o website.tar.gz -u myuser:mypassword https://github.com/my_org/some_project/archive/0.1.tar.gz
the download succeed.
how can download archive without using username , password
i experimented way solution:
curl -l -u myusername:mypersonaltoken ...
the difference use 'personal token' instead of password.
Comments
Post a Comment