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

8
lib/codeql.js generated
View file

@ -510,7 +510,13 @@ async function getCodeQLForCmd(cmd, checkVersion) {
"-Dhttp.keepAlive=false",
"-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, language, featureFlags) {
// Get extractor location