1
0
Fork 0
pull/1666/head
bethanyj28 2024-02-23 08:46:56 -05:00
parent d3301c9bc2
commit 8d03fb4787
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ export async function streamExtractExternal(
}) })
.pipe(unzip.Parse()) .pipe(unzip.Parse())
.on('entry', (entry: unzip.Entry) => { .on('entry', (entry: unzip.Entry) => {
const entryPath = path.normalize(entry.path).replace(/^(\.\.(\/|\\|$))+/, '') const entryPath = path
.normalize(entry.path)
.replace(/^(\.\.(\/|\\|$))+/, '')
const fullPath = path.join(directory, entryPath) const fullPath = path.join(directory, entryPath)
core.debug(`Extracting artifact entry: ${fullPath}`) core.debug(`Extracting artifact entry: ${fullPath}`)
if (entry.type === 'Directory') { if (entry.type === 'Directory') {