Skip to main content

Convert OWASP ZAP JSON output to JUnit XML format

Project description

ZAP junit converter

Python Tests & Coverage CodeQL Bandit

Convert OWASP Zed Attack Proxy (ZAP) JSON output to JUnit XML format.

Could be used for converting output from ZAP to be displayed as tests results in GitLab.

Installation

pip install zap-junit

Usage

zap-junit input.json -o output.xml

Testing

poetry run pytest -v

Coverage Report

poetry run pytest --cov

Example usage

GitLab runner

This needs a run of ZAP in the earlier, saving the results as zap-baseline-report.json .

zap-baseline-results:
  stage: convert
  image:
    name: digitalist/zap-junit-converter:0.2
    entrypoint: [""]
  script:
    - |
      zap-junit zap-baseline-report.json  -o results.xml
  rules:
    - if: $CI_COMMIT_TAG
  artifacts:
    untracked: false
    expire_in: 2 days
    paths:
      - results.xml
    reports:
      junit: results.xml

Jobs Tests Result

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_junit-0.1.6.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zap_junit-0.1.6-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file zap_junit-0.1.6.tar.gz.

File metadata

  • Download URL: zap_junit-0.1.6.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.13.4 Darwin/23.6.0

File hashes

Hashes for zap_junit-0.1.6.tar.gz
Algorithm Hash digest
SHA256 4d4c6603472d25e8c37b15309a6978e719ce3d6f15da23b319df9542ebb75dd0
MD5 eb357569c2480418903a5c2bbdf22c96
BLAKE2b-256 04bc5e26c36976ccbdf396832f2f136b1efd9ed506375430741d40883098e63d

See more details on using hashes here.

File details

Details for the file zap_junit-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: zap_junit-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.13.4 Darwin/23.6.0

File hashes

Hashes for zap_junit-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9d81e32bef3ea496243e5befe7f20806b95909445e2097da68c3302cf0967eeb
MD5 c6cfda5585177c44e58491aaea4462cb
BLAKE2b-256 d924d23972e12f28b7e7d24844abf487f56cae328411055e8fa457a30d282ac4

See more details on using hashes here.

Supported by

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