File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,6 +168,15 @@ jobs:
168168 # Audit the PROJECT's dependency closure resolved from pyproject.toml
169169 # (rich, httpx, prompt_toolkit + transitives) — NOT the whole runner
170170 # environment, which would flag unrelated tooling like pip/setuptools.
171- # Record accepted/unfixable advisories with `--ignore-vuln <ID>` .
171+ # Record accepted/unfixable advisories in .pip-audit-known-vulnerabilities .
172172 - name : pip-audit
173- run : pip-audit . --strict --progress-spinner=off
173+ run : |
174+ IGNORE_VULNS=""
175+ if [ -f .pip-audit-known-vulnerabilities ]; then
176+ while IFS= read -r vuln_id || [ -n "$vuln_id" ]; do
177+ # Skip blank lines and comments
178+ case "$vuln_id" in ''|\#*) continue ;; esac
179+ IGNORE_VULNS="$IGNORE_VULNS --ignore-vuln $vuln_id"
180+ done < .pip-audit-known-vulnerabilities
181+ fi
182+ pip-audit . --strict --progress-spinner=off $IGNORE_VULNS
You can’t perform that action at this time.
0 commit comments