Skip to content

Commit 74c71a3

Browse files
Copilotdata-douser
andcommitted
Fix Windows integration test: use bash shell for CodeQL CLI check
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
1 parent a080f7a commit 74c71a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/ql-mcp-client.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@ class CodeQLMCPClient {
8787
this.logger.log("Checking for CodeQL CLI availability...");
8888

8989
// Try to run 'codeql version' to check if it's available
90+
// On Windows, explicitly use bash since the CodeQL stub is a bash script
9091
const version = execSync("codeql version", {
9192
encoding: "utf8",
9293
stdio: ["pipe", "pipe", "pipe"],
93-
timeout: 5000
94+
timeout: 5000,
95+
shell: process.platform === "win32" ? "bash" : undefined
9496
}).trim();
9597

9698
this.logger.log(`Found CodeQL CLI: ${version.split("\n")[0]}`);

0 commit comments

Comments
 (0)