8000 Merge pull request #2891 from austinpray-mixpanel/patch-1 · github/codeql-action@cffc916 · GitHub
[go: up one dir, main page]

Skip to content

Commit cffc916

Browse files
authored
Merge pull request #2891 from austinpray-mixpanel/patch-1
Allow configuring CODEQL_THREADS with an env var
2 parents 15bce5b + bb9fc01 commit cffc916

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
44

55
## [UNRELEASED]
66

7-
No user facing changes.
7+
- `threads` and `ram` inputs may be set via CODEQL_THREADS and CODEQL_RAM runner environment variables. [#2891](https://github.com/github/codeql-action/pull/2891)
88

99
## 3.28.17 - 02 May 2025
1010

lib/init-action.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)
0