Add test for security_advisory
This commit is contained in:
@@ -453,6 +453,16 @@ func TestWebhooks(t *testing.T) {
|
||||
"X-Hub-Signature": []string{"sha1=df442a8af41edd2d42ccdd997938d1d111b0f94e"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "SecurityAdvisoryEvent",
|
||||
event: SecurityAdvisoryEvent,
|
||||
typ: SecurityAdvisoryPayload{},
|
||||
filename: "../testdata/github/security-advisory.json",
|
||||
headers: http.Header{
|
||||
"X-Github-Event": []string{"security_advisory"},
|
||||
"X-Hub-Signature": []string{"sha1=6a71f24fa69f55469843a91dc3a5c3e29714a565"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "StatusEvent",
|
||||
event: StatusEvent,
|
||||
|
||||
Reference in New Issue
Block a user