Download private repo zip file with access token






















Note that this endpoint is limited to 1 MB files. I have found a workaround for large files up to MB but as far as I know it is not possible to drop larger files to github so this should work with all files.

Decode it using your favorite decoder. Kif11 - it's possible with basic auth without the user having to explicitly create a token first.

I don't know if things changed since May, but neither token nor basic auth works for me. I'm getting. I thought this was no longer working, however what I did wrong is not adding the correct permissions to the token I was generating. There is maybe a less permissive alternative that still allows you to just read. Originally, I was having trouble with the Token, itself. With that being said, I would imagine that something like the following, should do the trick. Skip to content.

Sign in Sign up. Instantly share code, notes, and snippets. Last active Oct 14, Code Revisions 7 Stars Forks Embed What would you like to do? Embed Embed this gist in your website. Share Copy sharable link for this gist. Learn more about clone URLs. Download ZIP. In the left sidebar, click Personal access tokens. Select the scopes. To use your token to access repositories from the command line, select repo.

Click Generate new token. Give your token a descriptive name. Let's suppose your actual token is abcdefg 2. Embed Token into the link. Upload image. Submit Preview Dismiss. Jan 27, This works—heureka! It's probably a fair bit of work to implement but the approach should work.

Until then you should add to the readme that asset downloading does not work for private repos for now. Great digging. Why couldn't it just be like public repos? I'll dig through this and figure out a fix. I'll let you know, but likely to take a couple of days. Awesome : Will give it a try in the next few days and report back.

Read the commit just now and it looks great. Maybe mention in the docs that the first asset will be used, although I imagine few people will have more than one anyway. The latest asset is the one used. I think it only returns a single asset. I changed the format of the transient for optimization. Depending upon how you updated you could get this error. If you update to the latest develop 6. Also, is the release asset update working?

Gave it a try with 6. Skip to content. Star 2. New issue. Jump to bottom. Release Assets for private repo: Missing Access Token?



0コメント

  • 1000 / 1000