autobuild-action: Run autobuilders with $CODEQL_RUNNER set.

Without this, the tracer will not be injected on MacOS, as we need the
runner to circumvent SIP.
Also add a test that tests the autobuild-action to exercise this code path.
This commit is contained in:
Cornelius Riemenschneider 2022-07-21 15:51:54 +00:00
parent 8171514c02
commit a32664975f
5 changed files with 98 additions and 3 deletions

View file

@ -780,7 +780,12 @@ async function getCodeQLForCmd(
"-Dmaven.wagon.http.pool=false",
].join(" ");
await runTool(autobuildCmd);
const runnerExe = process.env["CODEQL_RUNNER"];
if (runnerExe) {
await runTool(runnerExe, [autobuildCmd]);
} else {
await runTool(autobuildCmd);
}
},
async extractScannedLanguage(
databasePath: string,