Skip to content

Commit 8dd4a44

Browse files
authored
Update ci.yml
1 parent 36c32c8 commit 8dd4a44

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)