Skip to content

Commit c41b278

Browse files
Allow configuring CODEQL_THREADS with an env var
ref #2890
1 parent 5eb3ed6 commit c41b278

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/init-action.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,8 @@ async function run() {
547547
);
548548
core.exportVariable(
549549
"CODEQL_THREADS",
550-
getThreadsFlagValue(getOptionalInput("threads"), logger).toString(),
550+
process.env["CODEQL_THREADS"] ||
551+
getThreadsFlagValue(getOptionalInput("threads"), logger).toString(),
551552
);
552553

553554
// Disable Kotlin extractor if feature flag set

0 commit comments

Comments
 (0)