搜索

PythonReactSEOPDF
GitHub Skill

dependency-checker

Audits Python dependencies for security vulnerabilities and best practices. Use before PR or after adding dependencies.

edri2or-commits☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Dependency Checker

Mission: Zero Known Vulnerabilities in production dependencies.


Audit Results (Auto-Executed)

!`python .claude/skills/dependency-checker/scripts/check_deps.py 2>&1`

Analysis

Based on the audit results above:

If AUDIT PASSED ✅
## ✅ Dependency Audit Passed

All dependencies are secure and properly pinned.
Safe to proceed with deployment.
If AUDIT FAILED ❌

Critical issues require immediate action:

Issue Action
Vulnerability Update to fixed version, test, redeploy
Conflict Resolve version incompatibility

Fix Steps:

  1. pip install package==fixed-version
  2. Update requirements.txt
  3. pytest tests/ -v
  4. pip freeze > requirements.lock
If AUDIT WARNING ⚠️

Non-blocking issues to address:

  • Outdated packages: Plan updates
  • Format issues: Pin versions properly

What It Checks

  1. Security Vulnerabilities (pip-audit) → CRITICAL/HIGH block deployment
  2. Outdated Packages (pip list --outdated) → Warning
  3. Format Validation → All deps should use == pinning
  4. Dependency Conflicts (pip check) → Blocks if conflicts exist

Quick Commands

# Install audit tool
pip install pip-audit

# Run security audit
pip-audit -r requirements.txt

# Check outdated
pip list --outdated

# Check conflicts
pip check

For full command reference, see policy.md


Safety Rules

NEVER:
  • Auto-update production dependencies without testing
  • Ignore CRITICAL/HIGH vulnerabilities
  • Deploy with known conflicts
ALWAYS:
  • Run full test suite after updates
  • Update lock file: pip freeze > requirements.lock
  • Document changes in changelog

Integration

Add/update dependency → dependency-checker ✅ → commit → push → CI validates

CI Enhancement: Add pip-audit to .github/workflows/ for automated checks.


Success Metrics

  • ✅ Zero CRITICAL/HIGH vulnerabilities
  • ✅ All production deps pinned with ==
  • ✅ Lock file synchronized
  • ✅ Audit completes in < 30 seconds

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!