Skip to content

Commit

Permalink
Add a pre-commit hook to run pip-audit
Browse files Browse the repository at this point in the history
The pip-audit tool will audit any supplied pip requirements files for
vulnerable packages.
  • Loading branch information
mcdonnnj committed Jan 18, 2024
1 parent c0eed09 commit 4326f12
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@ repos:
hooks:
- id: validate_manifest

# Security hooks
- repo: https://github.com/pypa/pip-audit
rev: v2.7.0
hooks:
- id: pip-audit
args:
# Add any pip requirements files to scan
- --requirement
- requirements-dev.txt
- --requirement
- requirements-test.txt
- --requirement
- requirements.txt

# Go hooks
- repo: https://github.com/TekWizely/pre-commit-golang
rev: v1.0.0-rc.1
Expand Down

0 comments on commit 4326f12

Please sign in to comment.