Skip to content

Commit 94d8c06

Browse files
committed
Bump tar-fs to fix non-impactful vuln warning
1 parent 4e40c09 commit 94d8c06

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed

automation/setup-server.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,17 @@ async function downloadServer(
9292
});
9393

9494
console.log(`Extracting server to ${SERVER_PATH}`);
95-
await extractTarGz({ src: downloadPath, dest: SERVER_PATH });
95+
await extractTarGz({
96+
src: downloadPath,
97+
dest: SERVER_PATH,
98+
tar: {
99+
ignore (_, header) {
100+
// Extract only files & directories - ignore symlinks or similar
101+
// which can sneak in in some cases (e.g. native dep build envs)
102+
return header!.type !== 'file' && header!.type !== 'directory'
103+
}
104+
}
105+
});
96106
await deleteFile(downloadPath);
97107

98108
console.log('Server download completed');

package-lock.json

+14-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)