mirror of
https://github.com/github/codeql-action.git
synced 2026-01-02 12:40:21 +08:00
switch to using runner instead of preload_tracer
This commit is contained in:
@@ -203,18 +203,16 @@ program
|
||||
);
|
||||
}
|
||||
|
||||
// On macos include the path to preload_tracer in the env as that
|
||||
// executable is needed to trace when System Integrity Protection is enabled.
|
||||
if (process.platform === "darwin") {
|
||||
const codeqlDist = tracerConfig.env["CODEQL_DIST"];
|
||||
const codeqlPlatform = tracerConfig.env["CODEQL_PLATFORM"];
|
||||
tracerConfig.env["CODEQL_PRELOAD_TRACER"] = path.join(
|
||||
codeqlDist,
|
||||
"tools",
|
||||
codeqlPlatform,
|
||||
"preload_tracer"
|
||||
);
|
||||
}
|
||||
// On macos it's necessary to prefix the build command with the runner exectuable
|
||||
// on order to trace when System Integrity Protection is enabled.
|
||||
// The exectuable also exists and works for other platforms so we output this env
|
||||
// var with a path to the runner regardless so it's always available.
|
||||
tracerConfig.env["CODEQL_RUNNER"] = path.join(
|
||||
tracerConfig.env["CODEQL_DIST"],
|
||||
"tools",
|
||||
tracerConfig.env["CODEQL_PLATFORM"],
|
||||
"runner"
|
||||
);
|
||||
|
||||
// Always output a json file of the env that can be consumed programmatically
|
||||
const jsonEnvFile = path.join(config.tempDir, codeqlEnvJsonFilename);
|
||||
|
||||
Reference in New Issue
Block a user