-
Notifications
You must be signed in to change notification settings - Fork 374
Closed
Description
The source says this action respects both CODEQL_RAM and CODEQL_THREADS
this is true for CODEQL_RAM
codeql-action/lib/init-action.js
Line 320 in 5eb3ed6
core.exportVariable("CODEQL_RAM", process.env["CODEQL_RAM"] || |
but not true for CODEQL_THREADS
codeql-action/lib/init-action.js
Line 322 in 5eb3ed6
core.exportVariable("CODEQL_THREADS", (0, util_1.getThreadsFlagValue)((0, actions_util_1.getOptionalInput)("threads"), logger).toString()); |
Is this an oversight or is there a good reason for this?
My use case is I'm running this on a big 48 core kubernetes but the codeql runner pod is only allowed to use 16 cores. The autodetection is not factoring in the pod limits, it's looking at the node's available resources. I want to hint to codeql that it only has 16 threads available via the CODEQL_THREADS env var.
Metadata
Metadata
Assignees
Labels
No labels