Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to fail an audit if a dependency can't be audited #142

Closed
tetsuo-cpp opened this issue Nov 29, 2021 · 1 comment · Fixed by #146
Closed

Add option to fail an audit if a dependency can't be audited #142

tetsuo-cpp opened this issue Nov 29, 2021 · 1 comment · Fixed by #146
Labels
component:cli CLI components enhancement New feature or request

Comments

@tetsuo-cpp
Copy link
Contributor

Is your feature request related to a problem? Please describe.

If an environment contains unauditable dependencies, some users might prefer that pip-audit fails loudly by returning a non-zero exit code instead of just logging a warning and skipping it.

Describe the solution you'd like

Provide some kind of command line flag (maybe --strict) to control whether to fail the audit when a dependency can't be audited.

@woodruffw
Copy link
Member

I think this will also be solved nicely by the approach I braindumped in #141 (comment) -- when --strict is passed, we can fail with a reasonable error message on the first SkippedDependency we encounter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:cli CLI components enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants