dependency-checker
Audits Python dependencies for security vulnerabilities and best practices. Use before PR or after adding dependencies.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
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:
-
pip install package==fixed-version - Update requirements.txt
-
pytest tests/ -v -
pip freeze > requirements.lock
If AUDIT WARNING ⚠️
Non-blocking issues to address:
- Outdated packages: Plan updates
- Format issues: Pin versions properly
What It Checks
- Security Vulnerabilities (pip-audit) → CRITICAL/HIGH block deployment
- Outdated Packages (pip list --outdated) → Warning
-
Format Validation → All deps should use
==pinning - 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
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-26
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!