Skip to content
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

Nunit Multiple root elements #4

Open
Eldorados opened this issue Feb 14, 2020 · 1 comment
Open

Nunit Multiple root elements #4

Eldorados opened this issue Feb 14, 2020 · 1 comment
Labels

Comments

@Eldorados
Copy link

Eldorados commented Feb 14, 2020

Following the example here, I have the scanner running successfully with a targeted scan on a azure deployed site, produces the report.html and report.json

- task: owaspzap@1 inputs: scantype: 'targetedScan' url: 'https://mytestsite.azurewebsites.net/' aggressivemode: true

I noticed in the scan report that it is showing a low level warning on the site at http even though I have the site to auto redirect to https

This then causes issues for me when trying to import the xml file from the handlebars template into Nunit as it now has two root elements, one for the site at http and another for https

In the script to generate the handlebars template it uses {{#each site}} which will iterate over the sites in report.json file, so if there are more than one the resulting Nunit xml file is invalid

How can I force the scanner to stop trying the site at http? I'm not even sure how it got to it in the first place as I'm auto redirected to https when I try the url that it is reporting in a browser

Or... since the script itself is liable to create an invalid nunit xml file, what are the proper modifications needed to create multiple xml files per site?

@kenmuse
Copy link
Contributor

kenmuse commented Sep 4, 2020

@Eldorados - can you verify whether the updated details in the documentation enables you to create a valid report? The updated documentation can be found in Zap/README.md

@BSamodien - how do we get the updated version of this content in the Marketplace?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants