Skip to content

Commit 36fd433

Browse files
committed
Fix pip-audit: audit requirements file instead of environment
1 parent f240a8b commit 36fd433

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pr-review.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ jobs:
146146
pip install -e .
147147
148148
- name: Run pip-audit
149-
run: pip-audit --strict --skip-editable
149+
run: |
150+
# Generate requirements excluding editable installs, then audit
151+
pip freeze --exclude-editable > /tmp/requirements.txt
152+
pip-audit --strict -r /tmp/requirements.txt
150153
151154
# ============================================
152155
# Unit Tests with Pytest

0 commit comments

Comments
 (0)