-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add missing fields to SecurityAdvisoryEvent and rename others #2889
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2889 +/- ##
=======================================
Coverage 98.06% 98.06%
=======================================
Files 140 140
Lines 12269 12269
=======================================
Hits 12031 12031
Misses 162 162
Partials 76 76
|
github/event_types.go
Outdated
@@ -1591,6 +1591,8 @@ type WorkflowRunEvent struct { | |||
// | |||
// GitHub API docs: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security_advisory | |||
type SecurityAdvisory struct { | |||
CVSs *AdvisoryCVSs `json:"cvss,omitempty"` |
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.
I can't do a full review right now, but I noticed that cvss
is singular (not plural) and is an acronym for "CVS Score" so its capitalization should be "CVSS" .
The same is true for AdvisoryCVSS
.
Ah! I see that you are fixing some legacy naming mistakes. Thank you, @nikpivkin ! |
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.
Thank you, @nikpivkin !
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
Thank you, @WillAbides ! |
Add missing fields to SecurityAdvisoryEvent