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 details)

Uploaded Source

Built Distribution

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

Uploaded Egg

File details

Details for the file zap_report_formatter-0.0.2.tar.gz.

File metadata

  • Download URL: zap_report_formatter-0.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for zap_report_formatter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ea2b794dcd9ab578a07ed58b7f0515c6968884ad4394f71a78564449c9e201ad
MD5 54a7e845afd44f1d1d08816db259d47f
BLAKE2b-256 a3de6c5b2f4b76373306b33b71c7f51b64e1f4449f3771339bdeeb7393374af5

See more details on using hashes here.

File details

Details for the file zap_report_formatter-0.0.2-py2.7.egg.

File metadata

File hashes

Hashes for zap_report_formatter-0.0.2-py2.7.egg
Algorithm Hash digest
SHA256 f3bef58d52cd4de4cc63d7ce676ee639104923adcebe0b721d903958abc3bd06
MD5 7150069d87b9be79f088bf4e7c265977
BLAKE2b-256 9a0631a446ed0915f0acd9f84e7afb7c64f67a9051f1c4bbb3013693eb813077

See more details on using hashes here.

Supported by

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