Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77ae18d

Browse files
Revert "threads defaults to CODEQL_THREADS env var"
This reverts commit df7d681.
1 parent df7d681 commit 77ae18d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

init/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ 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 }}"
119118
debug:
120119
description: >-
121120
Enable debugging mode.

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)