Skip to content

uv audit: --ignore and --ignore-until-fixed#18737

Open
woodruffw wants to merge 6 commits intomainfrom
ww/uv-audit-ignore
Open

uv audit: --ignore and --ignore-until-fixed#18737
woodruffw wants to merge 6 commits intomainfrom
ww/uv-audit-ignore

Conversation

@woodruffw
Copy link
Copy Markdown
Member

Summary

This adds two new options to uv audit plus their corresponding config fields: --ignore and --ignore-until-fixed. These do pretty much what they say on the tin:

  • --ignore ID ignores the given vulnerability by ID, unconditionally. Any ID (including aliases) can be used, since it's common for people to use CVE IDs even though we consider PYSEC and OSV "more" canonical.
  • --ignore-until-fixed ID ignores the given vulnerability by ID until a fix version appears.

Both options are additive, i.e. can be passed multiple times. I've also implemented a [tool.uv.audit] section that these will live under on the config side.

Please bikeshed the naming, I'm not confident on it!

See #18506.

Test Plan

Added unit tests for both the CLI and config pathways.

Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
@woodruffw woodruffw self-assigned this Mar 27, 2026
@woodruffw woodruffw added the preview Experimental behavior label Mar 27, 2026
Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
@woodruffw woodruffw mentioned this pull request Mar 27, 2026
21 tasks
Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
@woodruffw woodruffw marked this pull request as ready for review March 27, 2026 15:19
@woodruffw woodruffw requested review from konstin and zanieb March 27, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Experimental behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant