mirror of
https://github.com/github/codeql-action.git
synced 2026-05-08 14:50:21 +00:00
Increse log verbosity of process injection
This commit is contained in:
Generated
+2
-1
@@ -60,6 +60,7 @@ async function injectWindowsTracer(processName, processLevel, config, codeql, tr
|
||||
|
||||
$id = $PID
|
||||
while ($true) {
|
||||
Write-Host "Looking for process with id : $id"
|
||||
$p = Get-CimInstance -Class Win32_Process -Filter "ProcessId = $id"
|
||||
Write-Host "Found process: $p"
|
||||
if ($p -eq $null) {
|
||||
@@ -72,7 +73,7 @@ async function injectWindowsTracer(processName, processLevel, config, codeql, tr
|
||||
}
|
||||
}
|
||||
Write-Host "Final process: $p"
|
||||
|
||||
Write-Host "Final pid: $id"
|
||||
Invoke-Expression "&$tracer --inject=$id"`;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user