This commit is contained in:
bethanyj28 committed 2024-02-23 08:46:56 -05:00
1 parent d071e77495
commit 49b9ec55c4
1 file changed
+3 -1
+3 -1
View File
@@ -94,7 +94,9 @@ export async function streamExtractExternal(
})
.pipe(unzip.Parse())
.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)
core.debug(`Extracting artifact entry: ${fullPath}`)
if (entry.type === 'Directory') {