Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #299 from github/azure_pipelines
Detect Agent.Worker.exe
Robert authored and GitHub committed Nov 11, 2020

Unverified

No user is associated with the committer email.
2 parents fdb0d48 + 9a7b7cb commit acacf9b
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/init.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/init.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/init.ts
@@ -155,6 +155,10 @@ export async function injectWindowsTracer(
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
}

0 comments on commit acacf9b

Please sign in to comment.