fix: harden Windows exec allowlist
This commit is contained in:
@@ -1046,6 +1046,7 @@ export function createExecTool(
|
||||
safeBins: new Set(),
|
||||
cwd: workdir,
|
||||
env,
|
||||
platform: nodeInfo?.platform,
|
||||
});
|
||||
let analysisOk = baseAllowlistEval.analysisOk;
|
||||
let allowlistSatisfied = false;
|
||||
@@ -1073,6 +1074,7 @@ export function createExecTool(
|
||||
safeBins: new Set(),
|
||||
cwd: workdir,
|
||||
env,
|
||||
platform: nodeInfo?.platform,
|
||||
});
|
||||
allowlistSatisfied = allowlistEval.allowlistSatisfied;
|
||||
analysisOk = allowlistEval.analysisOk;
|
||||
@@ -1282,6 +1284,7 @@ export function createExecTool(
|
||||
safeBins,
|
||||
cwd: workdir,
|
||||
env,
|
||||
platform: process.platform,
|
||||
});
|
||||
const allowlistMatches = allowlistEval.allowlistMatches;
|
||||
const analysisOk = allowlistEval.analysisOk;
|
||||
|
||||
Reference in New Issue
Block a user