Skip to main content

scitex-audit

SciTeX

Unified security scanning: bandit + shellcheck + pip-audit + GitHub advisories in one report.

Full Documentation · uv pip install scitex-audit[all]

pypi python docs

tests install-test cov


Problem and Solution

# Problem Solution
1 4 security tools, different outputs — bandit (py) + shellcheck (sh) + pip-audit (deps) + GH Advisories each speak their own format; no unified report scitex-audit . — runs all four, merges findings into one JSON report; ideal for CI pre-release gates

Quick Start

from scitex_audit import audit

# Run all scanners on the current directory.
results = audit(".")

# Run only specific scanners.
results = audit(".", checks=["python", "shell"])

# Or from the CLI:
# $ scitex-audit . --json > report.json

Installation

uv pip install "scitex-audit[all]"

Architecture

flowchart LR
    Repo[(repo)] --> Runner[scitex_audit.audit]
    Runner --> B[bandit - Python]
    Runner --> P[pip-audit - deps]
    Runner --> S[shellcheck - shell]
    B & P & S --> Fmt[_format] --> Out[CLI / JSON / GitHub annotations]

Figure 1. Unified scanning pipeline — one entry point dispatches to four backends and merges results into a single report.

src/scitex_audit/
├── _runner.py        # orchestrates checks, aggregates results
├── _bandit.py        # Python security scanner (bandit)
├── _pip_audit.py     # dependency CVE scanner (pip-audit)
├── _shellcheck.py    # shell script linter (shellcheck)
├── _format.py        # human + JSON output formatting
├── _github.py        # GitHub Actions annotation emitter
└── _skills/          # SciTeX skills metadata

2 Interfaces

Python API
from scitex_audit import audit

# Run all enabled scanners and merge results.
results = audit(".")

# Run only specific scanners.
results = audit(".", checks=["python", "shell"])
CLI
scitex-audit .                          # all scanners
scitex-audit . --checks python,shell    # subset
scitex-audit . --json                   # machine-readable

Environment Variables

Variable Default Purpose
SCITEX_AUDIT_DIR ~/.scitex/audit/github-alerts/runtime/ (or <git-root>/.scitex/audit/github-alerts/runtime/ when invoked from inside a git repo) Where GitHub-alerts reports are written when scitex-audit github check --save is used. Honoured verbatim — no audit/ subdir is appended on top of an explicit path.
SCITEX_DIR ~/.scitex User-scope SciTeX root. Used as the parent of the audit/ subtree when SCITEX_AUDIT_DIR is not set.
SCITEX_AUDIT_CONFIG ~/.scitex/audit/config.yaml Optional config-file override (mentioned for parity with sibling scitex-* packages; reserved).
GH_TOKEN / GITHUB_TOKEN — Picked up by the gh CLI for GitHub API auth. Standard gh behaviour; not a scitex-audit-specific knob.

The legacy ~/.scitex/security/ directory (from scitex-security 0.1.x, absorbed per ADR-0001 in scitex-dev #139) is auto-symlinked into ~/.scitex/audit/github-alerts/ on first import of scitex_audit — no manual user step.

Part of SciTeX

scitex-audit is part of SciTeX. Install via the umbrella with pip install scitex[audit] to use as scitex.audit (Python) or scitex audit ... (CLI).

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.

License

AGPL-3.0 — see LICENSE for details.


SciTeX

Metadata

Release files for scitex-audit 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 scitex-audit 0.2.0
File Size Uploaded Provenance
scitex_audit-0.2.0.tar.gz 8.1 MB With provenance Details

Built distribution (wheel)

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

Total release size: 15.8 MB

Release files / scitex_audit-0.2.0.tar.gz

Download URL scitex_audit-0.2.0.tar.gz
Size 8.1 MB
Tags Source
SHA-256 checksum
How to use checksums
2864e67d5509ddd75172a0c80941b885744ceca4a6206857ea2b10446bb88f1b
BLAKE2b-256 checksum
How to use checksums
44191fb1f10f459ab6ddc308ae62321c50d3c293bee3f1b813400210d3c5f36d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 7, 2026.

Transparency log

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

Download URL scitex_audit-0.2.0-py3-none-any.whl
Size 7.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
cbf1b5009752579ca6f35bdb0872f37571a7d6085fc7cdb890ccebe13e5b53ad
BLAKE2b-256 checksum
How to use checksums
ad708bc4826dd9650c3f5c36a2c4e2c8ba9ae25c0414b94815cb4e3783ba35c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 7, 2026.

Transparency log

Security for scitex-audit 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 scitex_audit-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 Jun 7, 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.

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