GitHub security alerts checker (Dependabot, secret scanning, code scanning) — standalone module from the SciTeX ecosystem
Project description
scitex-security
GitHub security-alert utilities — Dependabot, secret scanning, code scanning. Pure stdlib + `gh` subprocess, zero scitex.* runtime deps.
Full Documentation · uv pip install scitex-security[all]
Installation
pip install scitex-security
Architecture
src/scitex_security/
├── __init__.py # public re-exports
├── github.py # GitHub alert collection (Dependabot / secret / code scanning)
├── cli.py # `scitex-security check` / `show-latest`
├── __main__.py # python -m scitex_security
└── _skills.py # bundled agent skills
Runtime flow:
scitex-security check <owner/repo>
│
▼
github.check_github_alerts()
│ subprocess
▼
gh api repos/<owner>/<repo>/{dependabot,secret-scanning,code-scanning}/alerts
│
▼
format_alerts_report() → save_alerts_to_file(.scitex/security/)
scitex-security shells out to gh (GitHub CLI) and never touches
your tokens directly — GH_TOKEN / GITHUB_TOKEN are read by the
gh subprocess from the environment, not from this package.
2 Interfaces
Python API (primary)
from scitex_security import (
check_github_alerts,
save_alerts_to_file,
format_alerts_report,
GitHubSecurityError,
)
alerts = check_github_alerts(repo="ywatanabe1989/myrepo")
print(format_alerts_report(alerts))
save_alerts_to_file(alerts, output_dir=".scitex/security")
CLI
scitex-security check ywatanabe1989/myrepo
scitex-security show-latest --security-dir ./logs/security
Demo
flowchart LR
user["scitex-security check\nywatanabe1989/myrepo"] --> api["check_github_alerts()"]
env["GH_TOKEN /\nGITHUB_TOKEN"] -.-> gh["gh CLI subprocess"]
api --> gh
gh --> dep["Dependabot alerts"]
gh --> sec["secret-scanning alerts"]
gh --> code["code-scanning alerts"]
dep --> report["format_alerts_report()"]
sec --> report
code --> report
report --> stdout[("terminal report")]
report --> save["save_alerts_to_file()"]
save --> json[(".scitex/security/<ts>.json")]
Quick Start
See the Python API block above for the minimal end-to-end example.
Environment Variables
| Variable | Purpose | Default |
|---|---|---|
SCITEX_SECURITY_CONFIG |
Path to a YAML config file (overrides ~/.scitex/security/config.yaml). |
unset |
GH_TOKEN / GITHUB_TOKEN |
Auth token used by the underlying gh CLI subprocess. |
unset |
Config precedence: explicit path → $SCITEX_SECURITY_CONFIG → ~/.scitex/security/config.yaml → built-in defaults.
Status
Standalone fork of scitex.security. Pure stdlib + gh CLI subprocess —
zero scitex.* runtime deps. Umbrella scitex.security import path is
preserved via a sys.modules-alias bridge.
Part of SciTeX
scitex-security is part of SciTeX. Install via
the umbrella with pip install scitex[security] to use as
scitex.security (Python) or scitex security ... (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-only (see LICENSE).
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
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_security-0.1.4.tar.gz.
File metadata
- Download URL: scitex_security-0.1.4.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89f6930e4680aee5c7619296392195b1672ca5d8446a2ed1f32d3a95f6d55194
|
|
| MD5 |
4ebc46e86b3df9e21f11e43d5cf744cf
|
|
| BLAKE2b-256 |
b016accf68a1d87c11240f4f816f925e69a95c64795ac5c84ebc12bf3f6d28ae
|
Provenance
The following attestation bundles were made for scitex_security-0.1.4.tar.gz:
Publisher:
pypi-publish-and-github-release-on-tag.yml on ywatanabe1989/scitex-security
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_security-0.1.4.tar.gz -
Subject digest:
89f6930e4680aee5c7619296392195b1672ca5d8446a2ed1f32d3a95f6d55194 - Sigstore transparency entry: 1571587805
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-security@8c080e3bb917e7f1871b43326d1c31644c9b746e -
Branch / Tag:
refs/tags/v0.1.4 - 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@8c080e3bb917e7f1871b43326d1c31644c9b746e -
Trigger Event:
push
-
Statement type:
File details
Details for the file scitex_security-0.1.4-py3-none-any.whl.
File metadata
- Download URL: scitex_security-0.1.4-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9878086b11a8c9ad60a666c8f74c582bff01511bceb766291f5ccd77a8ca1856
|
|
| MD5 |
ff4e2b194efcf9fa39c003be5e07865f
|
|
| BLAKE2b-256 |
5fecc43408a638d458e0bca70d080220714372f6a79c73c8860d87a119559a41
|
Provenance
The following attestation bundles were made for scitex_security-0.1.4-py3-none-any.whl:
Publisher:
pypi-publish-and-github-release-on-tag.yml on ywatanabe1989/scitex-security
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_security-0.1.4-py3-none-any.whl -
Subject digest:
9878086b11a8c9ad60a666c8f74c582bff01511bceb766291f5ccd77a8ca1856 - Sigstore transparency entry: 1571587830
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-security@8c080e3bb917e7f1871b43326d1c31644c9b746e -
Branch / Tag:
refs/tags/v0.1.4 - 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@8c080e3bb917e7f1871b43326d1c31644c9b746e -
Trigger Event:
push
-
Statement type: