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

Resolve helper script issues on Windows starting wtih Node.js v20.12.2 #1515

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

ericcornelissen
Copy link
Owner

@ericcornelissen ericcornelissen commented Apr 16, 2024

Relates to #1513, #1514, and

Summary

Started due to observed test failures for Windows on v20.12.2. The resolution for CVE-2024-27980 causes the project's script helper function for spawning new npm commands to fail. This is a just a simple fix to bypass that fix.

Due to observed test failures for Windows on v20.12.2
@github-actions github-actions bot added the dependencies Changes to the project's dependencies label Apr 16, 2024
This fixes an issue with this project's helper scripts that started in
Node.js v20.12.2 due to the fix for CVE-2024-27980. In particular, we
spawn using `npm.cmd` on Windows to be able to run npm scripts
programmatically (just `npm` doesn't work on Windows), however because
of the CVE this is no longer allowed without setting `shell: true`. In
this context, setting `shell: true` doesn't really matter (all input is
considered trusted) so we just do that.
@ericcornelissen ericcornelissen changed the title Pin Node.js version for development to v20.12.1 Resolve helper script issues on Windows starting wtih Node.js v20.12.2 Apr 16, 2024
@ericcornelissen ericcornelissen added meta Relates to the project or repository itself and removed dependencies Changes to the project's dependencies labels Apr 16, 2024
@ericcornelissen ericcornelissen marked this pull request as ready for review April 16, 2024 16:17
@ericcornelissen ericcornelissen merged commit 00f52cb into main Apr 16, 2024
36 checks passed
@ericcornelissen ericcornelissen deleted the patch-1 branch April 16, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Relates to the project or repository itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant