Repository navigation
uv audit: adverse status reporting - #19128
Conversation
9754807 to
d8bc0dd
Compare
| // NOTE: intentional: we don't currently fail if there are any adverse statuses, | ||
| // only when there are vulnerabilities. We will likely change this once we allow users | ||
| // to ignore adverse statuses and configure policies. | ||
| if has_vulnerabilities { |
There was a problem hiding this comment.
Flagging: I loosened this intentionally, since I don't think we want to suddenly start failing based on adverse statuses here, at least not until we have a config/policy story.
| iniconfig is deprecated: | ||
| Reason: no-longer-maintained |
There was a problem hiding this comment.
What do you think about merging those two into one line? iniconfig is deprecated: no-longer-mained
There was a problem hiding this comment.
Works for me -- the original reason I didn't is because (in principle) the reason can be multiple lines or have interior formatting, although in practice PyPI doesn't allow a reason at the moment so that's moot. Putting it on the same line seems fine to me.
|
|
||
| Adverse statuses: | ||
|
|
||
| iniconfig is archived |
There was a problem hiding this comment.
I feel like I'm missing some visual outline here, maybe some bullet points?
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Summary
Part of #18506. Closes #15254.
With this, we take the PEP 792 project status information (already present in our internal representations per #15254) and use it to produce appropriate adverse status reports (e.g.
hackme is quarantined).To do this we need to make (frequently cached) registry client requests, on top of whatever requests (currently just OSV) that
uv auditneeds to make for known vulnerabilities/malware.Test Plan
I've added unit and integration tests, along with some
pypi-proxyscaffolding changes to allow us to easily test different project statuses.