-
Notifications
You must be signed in to change notification settings - Fork 86
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
cvss: bug fixes #1232
cvss: bug fixes #1232
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1232 +/- ##
==========================================
+ Coverage 55.76% 56.28% +0.52%
==========================================
Files 266 266
Lines 16759 16844 +85
==========================================
+ Hits 9345 9481 +136
+ Misses 6445 6400 -45
+ Partials 969 963 -6 ☔ View full report in Codecov by Sentry. |
Followup here before the review, there are still some issues. CVSS v2.0For vector CVSS v4.0For vector |
Oh, I see what you're saying. That is indeed a very indirect way to specify that behavior.
Oof, yeah. Missed doing that validation. |
See-also: quay#1232 Signed-off-by: Hank Donnay <hdonnay@redhat.com>
CVSS v2.0
For vector CVSS v4.0For vector |
See-also: quay#1232 Signed-off-by: Hank Donnay <hdonnay@redhat.com>
See-also: quay#1230 Signed-off-by: Hank Donnay <hdonnay@redhat.com>
See-also: quay#1230 Signed-off-by: Hank Donnay <hdonnay@redhat.com>
Got too zealous with switch and didn't have any testcases to exercise the metrics. Closes: quay#1230 Signed-off-by: Hank Donnay <hdonnay@redhat.com>
This adds additional tests driven by coverage numbers, and fixes the bugs that cropped up while exercising those paths. Signed-off-by: Hank Donnay <hdonnay@redhat.com>
See-also: quay#1232 Signed-off-by: Hank Donnay <hdonnay@redhat.com>
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just one comment
This allows the package to be able to reason about metrics group-wise. Signed-off-by: Hank Donnay <hdonnay@redhat.com>
Section 2.4 of the standard implies that a vector should have metrics with not defined values included if a metric in the group has a defined value. One might also say that the environmental group implies the temporal group, but that's quite annoying and the standard should say that if it wants to say that. Signed-off-by: Hank Donnay <hdonnay@redhat.com>
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
/fast-forward |
Hey, there are still issues with CVSS v2.0 and v4.0 implementations. Notice that in v4.0 implementation you export metrics sets to CVSS v2.0Parsing vector From spec Table 13 :
CVSS v4.01: Parsing vector From spec Table 23 :
2: Vector |
@hdonnay up :) |
Fixes for #1230.
Thanks @pandatix for the concise bug report!