Skip to main content

zairo

Git-diff-aware security impact analysis. zairo diffs a repository, builds a dependency subgraph (via Trailmark) around whatever changed, and can run an LLM vulnerability scan limited to just that changed code — instead of re-scanning the whole codebase on every change.

Output is a report.json (raw graph data), a self-contained report.html (interactive dependency graph viewer), and — when --llm is used — a report.sarif for tools that consume SARIF (e.g. GitHub code scanning).

Install

pip install zairo

For local development:

python -m venv venv
source venv/bin/activate
pip install -e ".[dev]"

Usage

# Analyze uncommitted changes in a repo
zairo /path/to/repo

# Diff two refs, traverse 2 hops out from changed nodes, run an LLM scan
zairo /path/to/repo --base main --target HEAD --depth 2 --llm

Run zairo --help for the full option list.

CI / PR gating

--fail-on <low|medium|high|critical> exits non-zero if any finding at or above that severity is found, so a CI step can block a merge on it. It requires --llm, and doesn't suppress report.sarif — the SARIF file is still written even on a failed gate (including a clean, empty one on a passing scan), so a scanning UI reflects the current state either way.

zairo . --base "$BASE_REF" --target HEAD --llm --fail-on high -o zairo_out

See examples/github-actions/zairo-pr-scan.yml for a full PR-scan workflow: it runs zairo on the PR diff, uploads report.sarif to GitHub's code scanning, and fails the job if the gate fails.

Development

pytest

License

MIT — see LICENSE.

Metadata

Release files for zairo 0.2.0

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

Source distribution (sdist)

Source distribution for zairo 0.2.0
File Size Uploaded Provenance Actions
zairo-0.2.0.tar.gz 27.5 kB With provenance Details for zairo-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zairo 0.2.0
File Interpreter ABI Platform Actions
zairo-0.2.0-py3-none-any.whl Python 3 none any Details for zairo-0.2.0-py3-none-any.whl

Total release size: 54.0 kB

Release files / zairo-0.2.0.tar.gz

Download URL zairo-0.2.0.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b4997dc4f581097e5d1eab0d185e2be48498a0e7f2ff85564322a6d88b5a8607
BLAKE2b-256 checksum
How to use checksums
a4e4ea687e4e1b3e83a8ae5b387fb2c1abca77e669d035dc23cd860f0a9fb3ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

Release files / zairo-0.2.0-py3-none-any.whl

Download URL zairo-0.2.0-py3-none-any.whl
Size 26.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb3a2316a93c67eea188b80cc2ed3d033a2b479f5f7749ba6a1d0e44faf75490
BLAKE2b-256 checksum
How to use checksums
f4d1be4ecacfbefd9171e80a0a4447dc6cc1a22d48494949077f80cd34a5b215
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

Security for zairo 0.2.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zairo-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

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