-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use custom context file for OWASP Zap Scanner #8
Comments
Hi @doymturner , I got the same issue. The scanner task didn't use custom context file. After checked, it seems the input name is incorrect. In task.json, it is provideCustomContext, but in the scanner read from providedCustomContext.
Thanks, |
You can try to update the input name of the task. So the YAML will be. FYI, it works for me.
|
Thanks @navarojc for looking into this! I am unfortunately still using the classic pipeline editor in Azure DevOps so I don't think I can manually change the input name at this time. Will have to spend some time converting over to YAML. |
Hi @navarojc I changed my task to "CSE-DevOps.zap-scanner.custom-build-release-task.owaspzap@1" but I still can't see my context being passed in the docker run. Anyone can help? 2021-03-01T22:30:06.5890183Z ##[section]Starting: ZAP Scanner |
@navarojc : thank you for identifying both the bug and the work-around. I can confirm that the plugin code has a bug in it. The officially documented option Ideally we would create a fix ourselves and submit it through a pull request. I hope that the project team still pay attention to our activity. EDIT: Oh, great. The actual code isn't part of this repository. This is only the documentation. 👎 @BSamodien can your team help on resolving this bug in the plugin? |
Along similar lines I've noticed that you can point at the correct file location all you want, ZAP isn't going to find it because the file is not copied into the correct ZAP working directory. There's all kinds of wonkiness going on with this plugin. |
@tsluyter @DariuszPorowski Did you ever manage to make this work? It seems like the contextPath is completely ignored. Generally, the Zap folder wasn't updated for an year, is it to be considered dead and should not be used productively? |
I am unable to use a custom context file for the OWASP Zap Scanner. I've been able to successfully run the scan, but was hoping to use a custom context for authentication. I created the context file locally and have tried using the file checked into a repo or downloaded using the Download secure file task and none of these methods pulls in and uses the context file.
Here is the YAML from the OWASP Zap Scanner task:
Not sure if I am using the custom context file incorrectly or there is some setting I need to turn on to have it be pulled in, but let me know if you need anything else from me.
The text was updated successfully, but these errors were encountered: