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

How to call OWASP ZAP in new YAML pipeline #35

Open bdelaney opened 5 years ago

bdelaney commented 5 years ago

in new AZ Devops (free version, like old VSTS but with dev.azure.com) the default pipeline is YAML. I can turn off that preview feature to find the task in the old GUI method, but would like to start using YAML pipelines. How to call OWASP ZAP using that?

kasunkv commented 5 years ago

Hi @bdelaney, Thanks for the question.. One trick you can do is to configure the OWASP Zap task using the designer and copy the generated YAML in to your YAMP pipeline definition file. You can copy the YAML using this designer by Clicking on the View YAML button

Also here is a sample YAML definition

`variables: Zap.Url: 'zap.example.com' Zap.ApiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

steps:

Also as an improvement, I will add the YAML definition for the task into the documentation as well. Thanks for bringing this to my attention. :)