Compare commits

...
Author SHA1 Message Date
Julius Marminge ce1b679cc9 Disable shell by default in process runner
- Keep `spawn` shell usage limited to Windows defaults
- Avoid shell-based command execution on other platforms
2026-04-10 01:06:46 -07:00
Julius Marminge 1fd62443af Merge branch 'main' into codex/fix-github-cli-command-injection-vulnerability 2026-04-10 00:59:11 -07:00
Julius Marminge cc5871a8ba Mitigate Windows GH CLI command injection 2026-04-10 00:58:49 -07:00
2 changed files with 3 additions and 1 deletions

No files matched your search

+1
View File
@@ -168,6 +168,7 @@ const makeGitHubCli = Effect.sync(() => {
runProcess("gh", input.args, {
cwd: input.cwd,
timeoutMs: input.timeoutMs ?? DEFAULT_TIMEOUT_MS,
shell: false,
}),
catch: (error) => normalizeGitHubCliError("execute", error),
});
+2 -1
View File
@@ -8,6 +8,7 @@ export interface ProcessRunOptions {
allowNonZeroExit?: boolean | undefined;
maxBufferBytes?: number | undefined;
outputMode?: "error" | "truncate" | undefined;
shell?: boolean | undefined;
}
export interface ProcessRunResult {
@@ -139,7 +140,7 @@ export async function runProcess(
cwd: options.cwd,
env: options.env,
stdio: "pipe",
shell: process.platform === "win32",
shell: options.shell ?? process.platform === "win32",
});
let stdout = "";