pool: modernize seed_cache_index.js, node: import prefixes, top-level await, PATH check #69

Closed
opened 2026-10-19 15:26:42 +02:00 by pti · 0 comments
Owner

Sonar flags six findings in internal/pool/source/seed_cache_index.js. Four javascript:S7772 ask for the node: scheme on the url, fs, path and child_process requires. One javascript:S7785 asks for top-level await instead of a promise chain. One javascript:S4036, the only item Sonar classifies as a vulnerability, asks to make sure PATH only contains fixed unwriteable directories when spawning a child. Check whether the script sets an explicit PATH or spawns by absolute path, and fix or document. Small PR, the npm integration test covers the script. Part of the SonarQube cleanup tracking issue.

Sonar flags six findings in internal/pool/source/seed_cache_index.js. Four javascript:S7772 ask for the node: scheme on the url, fs, path and child_process requires. One javascript:S7785 asks for top-level await instead of a promise chain. One javascript:S4036, the only item Sonar classifies as a vulnerability, asks to make sure PATH only contains fixed unwriteable directories when spawning a child. Check whether the script sets an explicit PATH or spawns by absolute path, and fix or document. Small PR, the npm integration test covers the script. Part of the SonarQube cleanup tracking issue.
pti closed this issue 2026-10-19 16:17:35 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pti/wraptool#69
No description provided.