Commit Graph
32 Commits
Author SHA1 Message Date
Daniel Kennedy 9ed79d8596 Artifact: support downloading artifacts with CJK characters in their name (#2341)
* Artifact: support downloading artifacts with CJK characters in their name

* Fix some linting/PR comments

* One more linting fix
2026-03-11 09:30:15 -04:00
Daniel KennedyandCopilot 471c2154b5 Artifact download: don't unzip non-zip artifacts (#2253)
* Download artifact: don't extract the downloaded file if the content-type isn't a zip

* Remove unused `import`

* Add support for specifying whether to skip decompressing

* Prevent path traversal attacks

* Fix indenting

* Update packages/artifact/__tests__/download-artifact.test.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Parse the mime type out of the content-type header

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix some linting issues

* Swap `zip` for `application/zip-compressed`

* Test: negative check for malicious paths

* Increase the timeout on one of the tests

* Check the URL path for `.zip` to see if we can auto-decompress

* Fix linting issue

* Bump the package version and add release notes

* Remove `launch.json`

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-30 12:18:38 -05:00
Daniel Kennedy 0df0288961 @actions/artifact: convert to an ESM module (#2266)
* `@actions/artifact`: convert to an ESM module

* Update the package-lock.json

* Undo the GHES ignores

* Fix the reference to `@actions/http-client` in the lock file

* Bump `@actions/core` to `3.0.0`

* Remove `jest.config.cjs`

* Import `OctoKitOptions` from `@octokit/core/types`

* Pull the package version from `package.json`

* Workaround getting the package version for the user-agent

* Fix the `archiver` import

* Fix linting
2026-01-29 09:52:09 -05:00
Daniel Kennedy c615b29a88 Fix linting 2025-09-25 09:26:13 -04:00
Daniel Kennedy 57706d3720 Test: add a timeout test for downloading chunks from the stream 2025-09-25 09:11:38 -04:00
Ryan Ghadimi 009c836f4c Update proto artifact interface, retrieve artifact digests, return indicator of mismatch failure 2025-03-05 11:29:44 +00:00
bethanyj28 9b0906f349 lint 2024-04-23 16:10:57 -04:00
bethanyj28 c8709a8e12 lint 2024-04-23 16:06:02 -04:00
bethanyj28 f850f97534 use latest unzip-stream 2024-04-23 15:54:54 -04:00
bethanyj28 16c885c1b1 add a comment 2024-02-23 15:33:24 -05:00
bethanyj28 32d54cd56e re-add noop logs and format + lint 2024-02-23 13:46:22 -05:00
bethanyj28 a50f629b31 update test case and handling 2024-02-23 13:41:40 -05:00
bethanyj28 d46fe375bc attempt with comparing index 2024-02-23 11:59:36 -05:00
bethanyj28 b3553fd676 ensure no path traversal 2024-02-23 10:54:12 -05:00
bethanyj28 86727f19b4 audit, lint, format 2024-02-22 17:55:53 -05:00
bethanyj28 a711fa6a24 update tests 2024-02-22 17:51:15 -05:00
bethanyj28 1bb910af6f use on entry 2024-02-22 17:16:32 -05:00
Vallie Joseph 4d0995dd74 updating timer; removing logs 2024-01-09 19:23:57 +00:00
Vallie Joseph 01fb2eed05 increasing timeout 2024-01-09 18:45:26 +00:00
Vallie Joseph 635e2a657a adding delayed response to message body http mock 2024-01-09 16:44:12 +00:00
Vallie Joseph 0f6f9de20a testing reject after timeout 2024-01-08 15:20:05 +00:00
Vallie Joseph 6bef6fbcf9 committing v1 2023-12-22 03:51:47 +00:00
Vallie Joseph 9136acffe8 testing ci 2023-12-21 20:22:20 +00:00
Vallie Joseph d9d531246e updating test with blob timeouts 2023-12-21 18:31:01 +00:00
Vallie Joseph 7fc5085d62 updating timeout for retries 2023-12-21 15:10:01 +00:00
Rob Herley 21347bc00a push null at end of mocked message 2023-12-11 13:41:11 -05:00
Rob Herley 1bd4136583 consistent promise behavior for download artifact 2023-12-05 18:35:26 +00:00
Rob Herley f0cfa22878 fix test expectations 2023-12-01 16:34:27 +00:00
Rob Herley 22d9c85575 update download-artifact tests for public and internal impl 2023-12-01 01:32:45 +00:00
Rob Herley c6e89b42bc some test updates 2023-12-01 00:31:27 +00:00
Rob Herley 221ce16dce linter 2023-08-24 09:16:35 -04:00
Rob Herley d89027a67a add tests for download artifact 2023-08-23 23:18:03 -04:00