Make pip-audit run inside Poetry #25

Merged
mdaleo404 merged 1 commits from pip_audit_tweak into main 2025-12-25 10:25:42 +00:00
Showing only changes of commit a8a15bab36 - Show all commits

View File

@@ -22,8 +22,15 @@ jobs:
- name: Run pre-commit hooks - name: Run pre-commit hooks
run: pre-commit run --all-files --color always run: pre-commit run --all-files --color always
- name: Install Poetry
run: |
pip install poetry
poetry self add poetry-plugin-export
- name: Install pip-audit - name: Install pip-audit
run: pip install pip-audit run: pip install pip-audit
- name: Run pip-audit - name: Audit dependencies (Poetry lockfile)
run: pip-audit run: |
poetry export -f requirements.txt --without-hashes \
| pip-audit -r /dev/stdin