mirror of
https://github.com/github/codeql-action.git
synced 2026-05-08 14:50:21 +00:00
Unset DYLD_INSERT_BINARIES when unneeded
Previously, the tracer environment variables were set for the current process, and for future steps, in the init action. In certain scenarios (such as on MacOS ARM runners with System Integrity Protection disabled), these environment variables are not unset by the system. In particular, the `DYLD_INSERT_BINARIES` variable interferes with later system calls. This change unsets the `DYLD_INSERT_BINARIES` variable for the current process in init. It also unsets the variables either at the beginning of autobuild, or analyze, if autobuild has not run.
This commit is contained in:
Generated
+1
@@ -25,6 +25,7 @@ var EnvVar;
|
||||
* notifications in the `run[].invocations[].toolExecutionNotifications` SARIF property.
|
||||
*/
|
||||
EnvVar["DISABLE_DUPLICATE_LOCATION_FIX"] = "CODEQL_ACTION_DISABLE_DUPLICATE_LOCATION_FIX";
|
||||
EnvVar["DYLD_INSERT_BINARIES"] = "DYLD_INSERT_BINARIES";
|
||||
/**
|
||||
* Whether the CodeQL Action is using its own deprecated and non-standard way of scanning for
|
||||
* multiple languages.
|
||||
|
||||
Reference in New Issue
Block a user