[release/v7.4] add CodeQL suppresion for NativeCommandProcessor (#26174)

This commit is contained in:
PowerShell Team Bot
2025-10-09 15:55:08 -07:00
committed by GitHub
parent c986ccc1ff
commit a27518f861
@@ -1469,6 +1469,7 @@ namespace System.Management.Automation
{
using (ParameterBinderBase.bindingTracer.TraceScope("BIND argument [{0}]", NativeParameterBinderController.Arguments))
{
// codeql[cs/microsoft/command-line-injection ] - This is intended PowerShell behavior as NativeParameterBinderController.Arguments is what the native parameter binder generates based on the user input when invoking the command and cannot be injected externally.
startInfo.Arguments = NativeParameterBinderController.Arguments;
}
}