Skip to content

uv audit: add context/warnings for ignored vulnerabilities#18905

Open
woodruffw wants to merge 1 commit intomainfrom
ww/uv-audit-notify-ignore
Open

uv audit: add context/warnings for ignored vulnerabilities#18905
woodruffw wants to merge 1 commit intomainfrom
ww/uv-audit-notify-ignore

Conversation

@woodruffw
Copy link
Copy Markdown
Member

Summary

This makes two small QoL changes to uv audit:

  • We now warn the user if they ignore (via CLI or config) a vulnerability ID, but that ID doesn't actually match any known vulnerabilities discovered during the audit. This can happen due to drift (e.g. the user upgrades but forgets to removed a stale ID) or user error (the user typos a vulnerability ID).
  • We now ignore the number of ignored vulnerabilities as a statistic in the output. In practice, this means users will see something like "5 vulnerabilities (2 ignored)" in the header of uv audit's output if they ignore vulnerabilities.

See #18506.

Test Plan

Added integration tests for the new behavior.

Signed-off-by: William Woodruff <william@astral.sh>
@woodruffw woodruffw self-assigned this Apr 7, 2026
@woodruffw woodruffw added enhancement New feature or improvement to existing functionality preview Experimental behavior labels Apr 7, 2026
@woodruffw woodruffw requested a review from konstin April 7, 2026 16:05
@woodruffw woodruffw mentioned this pull request Apr 7, 2026
23 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement to existing functionality preview Experimental behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant