Allow configuring CODEQL_THREADS with an env var

ref https://github.com/github/codeql-action/issues/2890
This commit is contained in:
Austin Pray 2025-05-05 21:28:43 -05:00 committed by GitHub
parent 5eb3ed6614
commit c41b278fa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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