Skip to main content

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

Metadata

Release files for zap-junit 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zap-junit 0.1.6
File Size Uploaded Provenance Actions
zap_junit-0.1.6.tar.gz 3.7 kB Without provenance Details for zap_junit-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zap-junit 0.1.6
File Interpreter ABI Platform Actions
zap_junit-0.1.6-py3-none-any.whl Python 3 none any Details for zap_junit-0.1.6-py3-none-any.whl

Total release size: 8.1 kB

Release files / zap_junit-0.1.6.tar.gz

Download URL zap_junit-0.1.6.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4d4c6603472d25e8c37b15309a6978e719ce3d6f15da23b319df9542ebb75dd0
BLAKE2b-256 checksum
How to use checksums
04bc5e26c36976ccbdf396832f2f136b1efd9ed506375430741d40883098e63d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.13.4 Darwin/23.6.0

Release files / zap_junit-0.1.6-py3-none-any.whl

Download URL zap_junit-0.1.6-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d81e32bef3ea496243e5befe7f20806b95909445e2097da68c3302cf0967eeb
BLAKE2b-256 checksum
How to use checksums
d924d23972e12f28b7e7d24844abf487f56cae328411055e8fa457a30d282ac4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.13.4 Darwin/23.6.0

Security for zap-junit 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page