From c41b278fa8ded313d04ad480ae33c534d8759f92 Mon Sep 17 00:00:00 2001 From: Austin Pray <71290498+austinpray-mixpanel@users.noreply.github.com> Date: Mon, 5 May 2025 21:28:43 -0500 Subject: [PATCH] Allow configuring CODEQL_THREADS with an env var ref https://github.com/github/codeql-action/issues/2890 --- src/init-action.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/init-action.ts b/src/init-action.ts index b399d9dc5..e9c6cd0d3 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -547,7 +547,8 @@ async function run() { ); core.exportVariable( "CODEQL_THREADS", - getThreadsFlagValue(getOptionalInput("threads"), logger).toString(), + process.env["CODEQL_THREADS"] || + getThreadsFlagValue(getOptionalInput("threads"), logger).toString(), ); // Disable Kotlin extractor if feature flag set