Skip to content

Commit e941940

Browse files
author
jgstern-agent
committed
fix(ci): isolate safety scanner to prevent pip-audit false positives
safety's transitive dep on nltk (3 unpatched CVEs) was causing pip-audit to flag the CI environment itself. Run safety via pipx so its deps don't pollute the audit target. Signed-off-by: jgstern-agent <josh-agent@iterabloom.com>
1 parent e95cae9 commit e941940

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
else
9797
pip install -e .[dev]
9898
fi
99-
pip install pip-audit bandit safety pip-licenses
99+
pip install pip-audit bandit pip-licenses
100100
101101
- name: Vulnerability scan (pip-audit)
102102
run: pip-audit --skip-editable
@@ -110,7 +110,7 @@ jobs:
110110
fi
111111
112112
- name: Dependency safety check
113-
run: safety check || true # Advisory, don't fail
113+
run: pipx run safety check || true # Advisory; isolated to avoid polluting pip-audit's environment
114114

115115
- name: License audit
116116
run: |

0 commit comments

Comments
 (0)