Autobuild: Prefix invocations with CODEQL_RUNNER
Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com>
This commit is contained in:
parent
0a1efd7f45
commit
fac22de4f9
3 changed files with 24 additions and 3 deletions
13
lib/codeql.js
generated
13
lib/codeql.js
generated
|
|
@ -461,7 +461,18 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||
"-Dhttp.keepAlive=false",
|
||||
"-Dmaven.wagon.http.pool=false",
|
||||
].join(" ");
|
||||
await runTool(autobuildCmd);
|
||||
const runnerExecutable = process.env["CODEQL_RUNNER"] || "";
|
||||
// On Mac, prefixing with the runner executable is required to handle System Integrity Protection.
|
||||
if (runnerExecutable) {
|
||||
// Earlier steps (init) are expected to have written the runner executable path
|
||||
// to the tracing environment, and the current step is expected to have
|
||||
// correctly loaded that environment.
|
||||
await runTool(runnerExecutable, [autobuildCmd]);
|
||||
}
|
||||
else {
|
||||
// Fallback in case CODEQL_RUNNER wasn't correctly set or loaded.
|
||||
await runTool(autobuildCmd);
|
||||
}
|
||||
},
|
||||
async extractScannedLanguage(databasePath, language) {
|
||||
// Get extractor location
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -732,7 +732,17 @@ async function getCodeQLForCmd(
|
|||
"-Dmaven.wagon.http.pool=false",
|
||||
].join(" ");
|
||||
|
||||
await runTool(autobuildCmd);
|
||||
const runnerExecutable = process.env["CODEQL_RUNNER"] || "";
|
||||
// On Mac, prefixing with the runner executable is required to handle System Integrity Protection.
|
||||
if (runnerExecutable) {
|
||||
// Earlier steps (init) are expected to have written the runner executable path
|
||||
// to the tracing environment, and the current step is expected to have
|
||||
// correctly loaded that environment.
|
||||
await runTool(runnerExecutable, [autobuildCmd]);
|
||||
} else {
|
||||
// Fallback in case CODEQL_RUNNER wasn't correctly set or loaded.
|
||||
await runTool(autobuildCmd);
|
||||
}
|
||||
},
|
||||
async extractScannedLanguage(databasePath: string, language: Language) {
|
||||
// Get extractor location
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue