-
Notifications
You must be signed in to change notification settings - Fork 356
Rework VulnerabilityResolutionReason for CRA / DORA requirements
#10886
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
72fa5db
c5bea43
f9f9338
59bc685
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,11 @@ enum class VulnerabilityResolutionReason { | |
| */ | ||
| CANT_FIX_VULNERABILITY, | ||
|
|
||
| /** | ||
| * The required fix (e.g. patch, update) has been successfully applied and verified, eliminating the vulnerability. | ||
| */ | ||
| FIXED_VULNERABILITY, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The semantics described in the commit message IIUC differs from the one in the KDoc. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please explain where you feel is a mismatch, because I don't see any after re-reading. For using this enum value the question boils down to "How can a vulnerability actually be fixed if it is reported by an advisor for that package?". And one of the answers is the example mentioned in the commit message: As vulnerabilities are looked up by package coordinates / purls, not by package content, the advisor cannot know anything about patches being applied while keeping coordinates the same. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Basically, the advisor reported a false positive, because the identifier of the package is ambiguous. So, could we instead use the one currently named "false positive" ? Also, invalid match seems to fit.
I found it deviates, because the KDoc does not speak about any package context. Looking at all values existing in this enum right now, it seems there is more overlap inbetween several values. I wonder if the enum elements could be cleaned up a bit, such as merging |
||
|
|
||
| /** | ||
| * The code in which the vulnerability was found is neither invoked in the project's code nor indirectly | ||
| * via another open source component. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.