Skip to content

Commit 4e8328a

Browse files
committed
Only run audit on dependencies
Fixes an issue where the audit was failing CI due to pip having a vulnerability. pip is not a dependency for jsonschema. Change the audit step to only check vulnerabilities in dependencies.
1 parent f81f85f commit 4e8328a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ 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("python", "-m", "pip_audit", "-r", str(REQUIREMENTS["docs"]))
108108

109109

110110
@session()

0 commit comments

Comments
 (0)