Skip to main content

Takes in OWASP ZAP json reports and produces whitelisted xml reports for Jenkins Junit plugin.

Project description

# zap_report_formatter

OWASP Zed Attack Proxy (ZAP) produces reports that are formatted in either `json` or `xml`. However, the format of the `xml` reports generated are not friendly to integrate with Jenkin's Junit plugin. This is normally what we would want to do if we want to perform ZAP scans as part of our CI/CD workflow.

## Usage

```python
import zap_report_formatter from zap_report_formatter

zap_report_formatter.format('path to ZAP json report', 'path to json whitelist file', 'output path of xml file')
```

Here is what the `json` whitelist file should be like:

```json
{
"42": {
"name": "Source Code Disclosure - SVN",
"regex_uris": [
"http://example.localhost"
],
"reason": "Reason."
}
}
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zap_report_formatter-0.0.2.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

zap_report_formatter-0.0.2-py2.7.egg (5.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page