Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(run download): support non-zipped artifacts#13636

Closed
AruneshDwivedi wants to merge 1 commit into
cli:trunkfrom
AruneshDwivedi:fix/non-zipped-artifacts
Closed

fix(run download): support non-zipped artifacts#13636
AruneshDwivedi wants to merge 1 commit into
cli:trunkfrom
AruneshDwivedi:fix/non-zipped-artifacts

Conversation

@AruneshDwivedi

@AruneshDwivedi AruneshDwivedi commented Jun 11, 2026

Copy link
Copy Markdown

Artifacts uploaded with archive: false are returned with Content-Type: application/octet-stream instead of application/zip. The gh run download command previously only handled zip archives, so non-zipped artifacts failed to extract.

The fix checks the content type and handles octet-stream artifacts by writing them directly without extraction.

Fixes #13012

Artifacts uploaded with archive: false are returned with
Content-Type application/octet-stream instead of application/zip.
The download command previously tried to unzip all artifacts,
causing 'zip: not a valid zip file' errors.

Fix: check Content-Type header before attempting zip extraction.
Non-zipped artifacts are saved directly using the artifact name.

Fixes cli#13012

Signed-off-by: Arunesh Dwivedi <[email protected]>
@kambala-decapitator

Copy link
Copy Markdown

why was this created if there's #13013 already?

@AruneshDwivedi

Copy link
Copy Markdown
Author

Closing this — #13013 already covers the same ground for non-zipped artifact downloads. No point duplicating effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team ready-for-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't Download Non-Zipped Artifacts

3 participants