Skip to main content

Unified security scanning by orchestrating bandit, shellcheck, pip-audit, and GitHub alerts

Project description

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

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

scitex_audit-0.2.0.tar.gz (8.1 MB view details)

Uploaded Source

Built Distribution

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

scitex_audit-0.2.0-py3-none-any.whl (7.7 MB view details)

Uploaded Python 3

File details

Details for the file scitex_audit-0.2.0.tar.gz.

File metadata

  • Download URL: scitex_audit-0.2.0.tar.gz
  • Upload date:
  • Size: 8.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_audit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2864e67d5509ddd75172a0c80941b885744ceca4a6206857ea2b10446bb88f1b
MD5 08f2f1eac605e07a1f905d8f7d651650
BLAKE2b-256 44191fb1f10f459ab6ddc308ae62321c50d3c293bee3f1b813400210d3c5f36d

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_audit-0.2.0.tar.gz:

Publisher: pypi-publish-and-github-release-on-tag.yml on ywatanabe1989/scitex-audit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scitex_audit-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: scitex_audit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_audit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbf1b5009752579ca6f35bdb0872f37571a7d6085fc7cdb890ccebe13e5b53ad
MD5 1e8a95d20994f194ba55fb79c07973ed
BLAKE2b-256 ad708bc4826dd9650c3f5c36a2c4e2c8ba9ae25c0414b94815cb4e3783ba35c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_audit-0.2.0-py3-none-any.whl:

Publisher: pypi-publish-and-github-release-on-tag.yml on ywatanabe1989/scitex-audit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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