Skip to content

Commit 88c8ff2

Browse files
committed
Get CI passing again by ignoring the pip CVE.
It's not relevant to us, pip isn't a dependency. This fix isn't quite right though as clearly we should run pip-audit in a way where we don't get false positives when its own dependencies (here pip) have vulnerabilities. Running pip-audit on a library (as opposed to an end-user application) isn't the most common use however, so it doesn't appear there's a straightforward way to do this unless we come up with one ourselves.
1 parent 594e80d commit 88c8ff2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

noxfile.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,14 @@ def audit(session, installable):
104104
Audit dependencies for vulnerabilities.
105105
"""
106106
session.install("pip-audit", installable)
107-
session.run("python", "-m", "pip_audit")
107+
session.run(
108+
"python",
109+
"-m",
110+
"pip_audit",
111+
"--ignore-vuln",
112+
"GHSA-4xh5-x5gv-qwph", # pip vuln, not relevant, but we need to figure
113+
# out how to properly run pip-audit
114+
)
108115

109116

110117
@session()

0 commit comments

Comments
 (0)