Skip to content

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

License

Notifications You must be signed in to change notification settings

wongherlung/zap_report_formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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:

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages