threads defaults to CODEQL_THREADS env var

This commit is contained in:
Austin Pray 2025-05-13 20:13:00 +00:00
parent c41b278fa8
commit df7d681f04
2 changed files with 2 additions and 2 deletions

View file

@ -115,6 +115,7 @@ inputs:
(which for GitHub-hosted runners is 2 for Linux and Windows and 3 for macOS). (which for GitHub-hosted runners is 2 for Linux and Windows and 3 for macOS).
This input also sets the number of threads that can later be used by the "analyze" action. This input also sets the number of threads that can later be used by the "analyze" action.
required: false required: false
default: "${{ env.CODEQL_THREADS }}"
debug: debug:
description: >- description: >-
Enable debugging mode. Enable debugging mode.

View file

@ -547,8 +547,7 @@ async function run() {
); );
core.exportVariable( core.exportVariable(
"CODEQL_THREADS", "CODEQL_THREADS",
process.env["CODEQL_THREADS"] || getThreadsFlagValue(getOptionalInput("threads"), logger).toString(),
getThreadsFlagValue(getOptionalInput("threads"), logger).toString(),
); );
// Disable Kotlin extractor if feature flag set // Disable Kotlin extractor if feature flag set