Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use latest unzip-stream and unzip.Extract #1724

Merged
merged 4 commits into from
Apr 24, 2024

Conversation

bethanyj28
Copy link
Contributor

This updates the unzip-stream dependency and goes back to using unzip.Extract over unzip.Parse.

@bethanyj28 bethanyj28 marked this pull request as ready for review April 23, 2024 20:16
@bethanyj28 bethanyj28 requested a review from a team as a code owner April 23, 2024 20:16
})
)
.on('finish', async () => {
.pipe(unzip.Extract({path: directory}))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad we don't have to roll our own implementation anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed! Simplifies this a ton.

@bethanyj28 bethanyj28 merged commit 29885a8 into main Apr 24, 2024
14 checks passed
@bethanyj28 bethanyj28 deleted the bethanyj28/update-unzip-stream branch April 24, 2024 13:09
Copy link

@invisiblepancake invisiblepancake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use latest unzip-stream and unzip.Extract

Changes Made:
Updated the unzip-stream dependency.
Reverted to using unzip.Extract() instead of unzip.Parse().
Modifications across package-lock.json, package.json, RELEASES.md, download-artifact.test.ts, and download-artifact.ts.
Detailed Changes
package-lock.json:

Bumped version from 2.1.5 to 2.1.7.
Updated unzip-stream dependency from 0.3.1 to 0.3.4.
package.json:

Bumped version from 2.1.6 to 2.1.7.
RELEASES.md:

Added entry for version 2.1.7 highlighting the unzip-stream update and reversion to unzip.Extract().
download-artifact.test.ts:

Modified test to check for the existence of specific paths to ensure no path traversal.
Updated test case expectations accordingly.
download-artifact.ts:

Removed custom extraction logic and replaced with unzip.Extract().
Recommendations
Testing: Ensure all tests pass after the changes, especially the newly added path traversal checks.
Documentation: Update any relevant documentation to reflect the dependency changes and any new behavior.
Code Review: After confirming tests pass, the changes look aligned with the goals of updating dependencies and simplifying extraction logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants