From f085589957922eaf421db814399e88e415712050 Mon Sep 17 00:00:00 2001 From: Ysopwnable <161784452+N0zoM1z0@users.noreply.github.com> Date: Fri, 9 Oct 2026 21:05:54 +0800 Subject: [PATCH] fix(ci): pass selected environment to Windows Ghidra fixture (#1281) --- tests/boundary/providers/ghidra/ghidraLauncher.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/boundary/providers/ghidra/ghidraLauncher.test.ts b/tests/boundary/providers/ghidra/ghidraLauncher.test.ts index 4bb04d783..87850070d 100644 --- a/tests/boundary/providers/ghidra/ghidraLauncher.test.ts +++ b/tests/boundary/providers/ghidra/ghidraLauncher.test.ts @@ -214,7 +214,8 @@ describe("Ghidra headless launcher", () => { const token = "secret-token-that-must-not-leak"; const javaHome = "C:\\Java\\jdk-21"; const launcher = new GhidraHeadlessLauncher({ - environment: {}, + // Select the fixture's Node PATH and injected JVM options explicitly. + environment: process.env, analyzeHeadlessPath: fixturePath, // POSIX follows the real inspected-JVM route; Windows uses the official // batch script because its launcher contract differs.