Skip to content

715: fix private repo downloads - #717

Merged
asgrim merged 4 commits into
php:1.5.xfrom
asgrim:715-fix-private-repo-downloads
Aug 31, 2026
Merged

715: fix private repo downloads#717
asgrim merged 4 commits into
php:1.5.xfrom
asgrim:715-fix-private-repo-downloads

Conversation

@asgrim

@asgrim asgrim commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Fixes #715

PR submitter checklist

asgrim added 4 commits August 31, 2026 07:24
The easy route to use `browser_download_url` to grab the asset only works if
the repo is a public repo. However, the docs do indeed say:

 - If within a browser, fetch the location specified in the
   `browser_download_url` key provided in the response.
 - Alternatively, set the `Accept` header of the request to
   `application/octet-stream`. The API will either redirect the client to the
   location, or stream it directly if possible. API clients should handle both
   a `200` or `302` response.

So, we'll update PIE to use `url` and handle the other complexity with this.

ref: https://docs.github.com/en/rest/releases/assets?apiVersion=2026-03-10#get-a-release-asset
@asgrim asgrim added this to the 1.5.0 milestone Aug 31, 2026
@asgrim asgrim self-assigned this Aug 31, 2026
@asgrim asgrim added the bug Something isn't working label Aug 31, 2026
@asgrim
asgrim merged commit a0f2267 into php:1.5.x Aug 31, 2026
69 of 74 checks passed
@asgrim
asgrim deleted the 715-fix-private-repo-downloads branch August 31, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can not download binaries from private repositories

1 participant