kasunkv / owasp-zap-vsts-task

Visual Studio Team Services build/release task for running OWASP ZAP automated security tests
MIT License
30 stars 11 forks source link

No agent found in pool Default which satisfies the specified demands #36

Closed bdelaney closed 5 years ago

bdelaney commented 5 years ago

Have set up Zap server and it responds from my Azure Devops server 2019 RC2 (onprem) server. But my AZ Devops agent seems to not be able to execute the Zap task using the extension. The warning is in the issue and it goes on to say: npm Agent.Version -gtVersion 1.92.0

Do I need to add capability to the Agent pool?

bdelaney commented 5 years ago

This was a bit of a pain. I did need Node installed on the ZAP server where I have my Agent. I added a system environment variable to this Windows server. NPM=C:\Program Files\nodejs I restarted the Agent service on my deployment server where the ZAP is installed and expected to see the capabilities update. They did not. I had to restart the entire Azure Devops server to get the capabilities. Now I'm able to run a scan using the extension in my pipeline. May help