Skip to content

Commit c7e0031

Browse files
committed
Add missing Sender field in RepositoryVulnerabilityAlertEvent
1 parent 8947206 commit c7e0031

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

github/event_types.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,14 +1058,17 @@ type RepositoryVulnerabilityAlertEvent struct {
10581058
// Action is the action that was performed. Possible values are: "create", "dismiss", "resolve".
10591059
Action *string `json:"action,omitempty"`
10601060

1061-
//The security alert of the vulnerable dependency.
1061+
// The security alert of the vulnerable dependency.
10621062
Alert *RepositoryVulnerabilityAlert `json:"alert,omitempty"`
10631063

1064-
//The repository of the vulnerable dependency.
1064+
// The repository of the vulnerable dependency.
10651065
Repository *Repository `json:"repository,omitempty"`
10661066

10671067
// The following fields are only populated by Webhook events.
10681068
Installation *Installation `json:"installation,omitempty"`
1069+
1070+
// The user that triggered the event.
1071+
Sender *User `json:"sender,omitempty"`
10691072
}
10701073

10711074
// RepositoryVulnerabilityAlert represents a repository security alert.

github/github-accessors.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)