Skip to content

Commit df7d681

Browse files
threads defaults to CODEQL_THREADS env var
1 parent c41b278 commit df7d681

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

init/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ inputs:
115115
(which for GitHub-hosted runners is 2 for Linux and Windows and 3 for macOS).
116116
This input also sets the number of threads that can later be used by the "analyze" action.
117117
required: false
118+
default: "${{ env.CODEQL_THREADS }}"
118119
debug:
119120
description: >-
120121
Enable debugging mode.

src/init-action.ts

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

554553
// Disable Kotlin extractor if feature flag set

0 commit comments

Comments
 (0)