chore(ratchets): repoint child_process and wsl.exe allowlists at the split modules

This commit is contained in:
Neil
2026-08-24 23:45:07 -07:00
parent 2935ac3670
commit d54634b210
3 changed files with 13 additions and 3 deletions
@@ -21,7 +21,7 @@ main/codex-accounts/service.ts
main/codex/codex-state-db-backfill-recovery.ts
main/codex/codex-trust-grant-host.ts
main/codex/codex-wsl-hook-install-plan.ts
main/git/runner.ts
main/git/command-runner/wsl-command-resolution.ts
main/git/wsl-git-read-environment.ts
main/ipc/filesystem-watcher-wsl.ts
main/local-worktree-filesystem.ts
+1 -1
View File
@@ -345,7 +345,7 @@ describe('wsl.exe is spawned through one runner', () => {
// ALLOWLIST.length >= N` cannot fail while the allowlist alone exceeds N,
// so it passed even for a scanner that found nothing. This fails the moment
// detection stops seeing a call that is definitely there.
expect(offenders).toContain('main/git/runner.ts')
expect(offenders).toContain('main/git/command-runner/wsl-command-resolution.ts')
})
it('adds no new direct wsl.exe spawn', () => {
@@ -8,6 +8,10 @@
#
# Migrating a file means replacing its spawn/execFile calls with
# runProcess/spawnProcess and deleting its line here.
#
# The src/main/git/command-runner/* entries are the seven spawn sites that used
# to live in the single line src/main/git/runner.ts; splitting that file moved
# them, it did not add any.
src/cli/handlers/account.ts
src/cli/handlers/core.ts
src/cli/handlers/interactive-login-interruption.ts
@@ -57,7 +61,13 @@ src/main/emulator/serve-sim-runtime-materializer.ts
src/main/emulator/simctl-simulator-devices.ts
src/main/emulator/simulator-app-visibility.ts
src/main/external-editor-launch.ts
src/main/git/runner.ts
src/main/git/command-runner/exec-file-capture.ts
src/main/git/command-runner/git-exec-file.ts
src/main/git/command-runner/git-spawn.ts
src/main/git/command-runner/git-stream-stdout.ts
src/main/git/command-runner/spawn-command-capture.ts
src/main/git/command-runner/spawned-command-tree-kill.ts
src/main/git/command-runner/wsl-aware-spawn.ts
src/main/git/wsl-git-read-environment.ts
src/main/github/gh-utils.ts
src/main/hooks.ts