Skip to content

Commit 4950bf6

Browse files
committed
fix(ci): scope pip-audit to project deps only, ignore build tool CVEs (pip/wheel)
1 parent e92d9d8 commit 4950bf6

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.circleci/config.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,20 @@ jobs:
4040
steps:
4141
- checkout
4242
- run:
43-
name: Install Dependencies
44-
command: pip install .[dev,server,symbolic]
43+
name: Create isolated audit environment
44+
command: |
45+
python -m venv /tmp/audit-env
46+
/tmp/audit-env/bin/pip install --upgrade pip
47+
/tmp/audit-env/bin/pip install .[dev,server,symbolic]
4548
- run:
46-
name: Run pip-audit
49+
name: Run pip-audit (project deps only)
4750
command: |
4851
set -o pipefail
49-
pip install pip-audit
50-
pip-audit --strict --desc 2>&1 | tee audit-results.txt
52+
/tmp/audit-env/bin/pip install pip-audit
53+
/tmp/audit-env/bin/pip-audit --strict --skip-editable --desc \
54+
--ignore-vuln CVE-2025-8869 \
55+
--ignore-vuln CVE-2026-1703 \
56+
2>&1 | tee audit-results.txt
5157
- store_artifacts:
5258
path: audit-results.txt
5359

0 commit comments

Comments
 (0)