detect Agent.Worker.exe

This commit is contained in:
Robert 2020-11-10 16:16:58 +00:00
parent 409b71a3d0
commit aae4713a4d
3 changed files with 9 additions and 1 deletions

4
lib/init.js generated
View file

@ -102,6 +102,10 @@ async function injectWindowsTracer(processName, processLevel, config, codeql, tr
Write-Host "Found Runner.Worker.exe process which means we are running on GitHub Actions"
Write-Host "Aborting search early and using process: $p"
Break
} elseif ($p[0].Name -eq "Agent.Worker.exe") {
Write-Host "Found Agent.Worker.exe process which means we are running on Azure Pipelines"
Write-Host "Aborting search early and using process: $p"
Break
} else {
$id = $p[0].ParentProcessId
}