mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 02:19:07 +08:00
use resolve instead of normalize
This commit is contained in:
parent
90894a8853
commit
8a1800c5da
@ -104,7 +104,7 @@ export async function streamExtractExternal(
|
||||
new stream.Transform({
|
||||
objectMode: true,
|
||||
transform: async (entry, _, callback) => {
|
||||
const fullPath = path.normalize(path.join(directory, entry.path))
|
||||
const fullPath = path.resolve(path.join(directory, entry.path))
|
||||
if (!directory.endsWith(path.sep)) {
|
||||
directory += path.sep
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user