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

chore: update cross-spawn to 7.0.6 #1469

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

d-rowe
Copy link
Member

@d-rowe d-rowe commented Dec 5, 2024

Description

This is to resolve a CVE associated with cross-spawn-5.1.0. The package is getting pulled in from pre-commit, which hasn't had any updates since roughly 2016. The change ensures that we use cross-spawn-7.0.6 across the board.

I've verified there are no relevant breaking changes from v5-v7 with their changelog. The only breaking changes are to remove support for Node.js under v8.

Alternatives

We can use this as an opportunity to shift to an actively maintained git hook tool like husky. This would ensure we're using a library that gets updated regularly at the cost of a small migration effort. I went with the current approach as it seems like the pattern y'all are used to and wanted to avoid introducing a new dependencies.

Issues Resolved

Fixes

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • All tests pass
    • yarn lint
    • yarn test-unit
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@d-rowe d-rowe marked this pull request as ready for review December 5, 2024 21:00
@AMoo-Miki AMoo-Miki merged commit 57ba43c into opensearch-project:main Dec 6, 2024
23 checks passed
@d-rowe d-rowe deleted the cve-fixes branch December 9, 2024 21:45
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 12, 2024
* chore: update cross-spawn to 7.0.6

Signed-off-by: Daniel Rowe <[email protected]>

* include cross-spawn update in changelog

Signed-off-by: Daniel Rowe <[email protected]>

---------

Signed-off-by: Daniel Rowe <[email protected]>
(cherry picked from commit 57ba43c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
virajsanghvi pushed a commit that referenced this pull request Dec 12, 2024
* chore: update cross-spawn to 7.0.6



* include cross-spawn update in changelog



---------


(cherry picked from commit 57ba43c)

Signed-off-by: Daniel Rowe <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants