Unified security scanning by orchestrating bandit, shellcheck, pip-audit, and GitHub alerts
Project description
scitex-audit
Unified security scanning: bandit + shellcheck + pip-audit + GitHub advisories in one report.
Full Documentation · uv pip install scitex-audit[all]
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
- The freedom to run your research anywhere — your machine, your terms.
- The freedom to study how every step works — from raw data to final manuscript.
- The freedom to redistribute your workflows, not just your papers.
- 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2864e67d5509ddd75172a0c80941b885744ceca4a6206857ea2b10446bb88f1b
|
|
| MD5 |
08f2f1eac605e07a1f905d8f7d651650
|
|
| BLAKE2b-256 |
44191fb1f10f459ab6ddc308ae62321c50d3c293bee3f1b813400210d3c5f36d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_audit-0.2.0.tar.gz -
Subject digest:
2864e67d5509ddd75172a0c80941b885744ceca4a6206857ea2b10446bb88f1b - Sigstore transparency entry: 1744736458
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-audit@b5623a39ec5dbddf49837e8c463b3ee1198ea461 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish-and-github-release-on-tag.yml@b5623a39ec5dbddf49837e8c463b3ee1198ea461 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbf1b5009752579ca6f35bdb0872f37571a7d6085fc7cdb890ccebe13e5b53ad
|
|
| MD5 |
1e8a95d20994f194ba55fb79c07973ed
|
|
| BLAKE2b-256 |
ad708bc4826dd9650c3f5c36a2c4e2c8ba9ae25c0414b94815cb4e3783ba35c2
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_audit-0.2.0-py3-none-any.whl -
Subject digest:
cbf1b5009752579ca6f35bdb0872f37571a7d6085fc7cdb890ccebe13e5b53ad - Sigstore transparency entry: 1744736662
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-audit@b5623a39ec5dbddf49837e8c463b3ee1198ea461 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish-and-github-release-on-tag.yml@b5623a39ec5dbddf49837e8c463b3ee1198ea461 -
Trigger Event:
push
-
Statement type: