Output/report formatting for uv audit#18193
Merged
Conversation
Member
Author
df8f860 to
233fd7f
Compare
woodruffw
added a commit
that referenced
this pull request
Mar 3, 2026
## Summary This provides the scaffolding (CLI and initial `uv-audit` crate) for a `uv audit` subcommand. Closes #9189. Tracking: - [x] Core CLI scaffolding (this PR) - [x] #18185 - [x] Audit core (probably a new `uv-audit` crate): #18124 - [ ] Bulk dependency audits with OSV - [ ] Result presentation - [ ] #18193 Things that also need to be done with the MVP: - [ ] We should not audit workspace members by default (by definition, they don't exist on indices and therefore don't have meaningful results from vulnerability services). - [ ] I need to ensure groups/etc. are being filtered by correctly, right now we audit every single package in the lockfile unconditionally. ## Test Plan Unit and integration tests commensurate with the new functionality. --------- Signed-off-by: William Woodruff <william@astral.sh>
f64784b to
bba6e5a
Compare
konstin
reviewed
Mar 5, 2026
Member
konstin
left a comment
There was a problem hiding this comment.
Code looks good, left some style comments.
b47913d to
237062b
Compare
konstin
approved these changes
Mar 9, 2026
Member
konstin
left a comment
There was a problem hiding this comment.
Code looks good, is there an example uv.lock to see it in color?
Member
Author
I was testing it locally against |
konstin
reviewed
Mar 9, 2026
konstin
reviewed
Mar 9, 2026
konstin
reviewed
Mar 9, 2026
| )?; | ||
|
|
||
| for vuln in vulns { | ||
| writeln!( |
Member
There was a problem hiding this comment.
Can we show the link too? The title often isn't enough to understand whether you are affected.
Member
Author
There was a problem hiding this comment.
Yeah, I'll do that with a follow-up!
woodruffw
added a commit
that referenced
this pull request
Mar 9, 2026
## Summary Atop #18193. This tweaks the baseline filtering we do with `uv audit` -- previously we only skipped packages without versions, but we should _also_ skip workspace members, since workspace members are local by definition. ## Test Plan Will be tested with integration tests. Signed-off-by: William Woodruff <william@astral.sh>
woodruffw
added a commit
that referenced
this pull request
Mar 9, 2026
## Summary Atop #18193. This tweaks the baseline filtering we do with `uv audit` -- previously we only skipped packages without versions, but we should _also_ skip workspace members, since workspace members are local by definition. ## Test Plan Will be tested with integration tests. Signed-off-by: William Woodruff <william@astral.sh>
dc80a24 to
6246b49
Compare
woodruffw
added a commit
that referenced
this pull request
Mar 9, 2026
Atop #18193. This tweaks the baseline filtering we do with `uv audit` -- previously we only skipped packages without versions, but we should _also_ skip workspace members, since workspace members are local by definition. Will be tested with integration tests. Signed-off-by: William Woodruff <william@astral.sh>
6246b49 to
c2553d1
Compare
Signed-off-by: William Woodruff <william@astral.sh> Skeleton AuditDisplay Signed-off-by: William Woodruff <william@astral.sh> Initial reporting for `uv audit` Signed-off-by: William Woodruff <william@astral.sh> More spacing Signed-off-by: William Woodruff <william@astral.sh> I curse the English language's irregular plural forms Signed-off-by: William Woodruff <william@astral.sh> Clippy Signed-off-by: William Woodruff <william@astral.sh> Bump snapshots Signed-off-by: William Woodruff <william@astral.sh> Feedback Signed-off-by: William Woodruff <william@astral.sh> Feedback Signed-off-by: William Woodruff <william@astral.sh> Add a TODO Signed-off-by: William Woodruff <william@astral.sh>
Atop #18193. This tweaks the baseline filtering we do with `uv audit` -- previously we only skipped packages without versions, but we should _also_ skip workspace members, since workspace members are local by definition. Will be tested with integration tests. Signed-off-by: William Woodruff <william@astral.sh>
c2553d1 to
0333537
Compare
woodruffw
added a commit
that referenced
this pull request
Mar 10, 2026
## Summary This adds links to `uv audit`'s outputs. This required adding links to the backing (common) Vulnerability type and pulling them from the OSV service. OSV will always produce a link for a Vulnerability (since the ID itself can be turned into a link), but `Vulnerability::link` itself is optional since other services may not necessarily guarantee this. Follows #18193. ## Test Plan None yet. --------- Signed-off-by: William Woodruff <william@astral.sh>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
This adds some initial output/report formatting for
uv audit.This is an initial blush, any feedback to align this with rendering/formatting idioms elsewhere would be greatly appreciated!
Atop #18119.
Test Plan
None yet.