mirror of
https://github.com/github/codeql-action.git
synced 2026-05-07 22:30:44 +00:00
Increse log verbosity of process injection
This commit is contained in:
+2
-1
@@ -113,6 +113,7 @@ export async function injectWindowsTracer(
|
||||
|
||||
$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) {
|
||||
@@ -125,7 +126,7 @@ export async function injectWindowsTracer(
|
||||
}
|
||||
}
|
||||
Write-Host "Final process: $p"
|
||||
|
||||
Write-Host "Final pid: $id"
|
||||
Invoke-Expression "&$tracer --inject=$id"`;
|
||||
} else {
|
||||
// If the level is not defined then guess at the 3rd parent process.
|
||||
|
||||
Reference in New Issue
Block a user