Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/pypa-pip-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# https://github.com/pypa/gh-action-pip-a
name: 'PyPA pip-audit'

on:
pull_request:
branches:
- master
push:
branches:
- master


jobs:
selftest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install
run: |
python -m venv env/
source env/bin/activate
python -m pip install .
- uses: pypa/gh-action-pip-audit@v1.1.0
with:
virtual-environment: env/
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
repos:
# https://github.com/pypa/pip-audit?tab=readme-ov-file#pre-commit-support
- repo: https://github.com/pypa/pip-audit
rev: v2.8.0
hooks:
- id: pip-audit
args: ["-r", "requirements.txt"]

ci:
# Leave pip-audit to only run locally and not in CI
# pre-commit.ci does not allow network calls
skip: [pip-audit]