Page MenuHomeDevCentral

More thorough validation for GitHub payloads
ClosedPublic

Authored by dereckson on Jan 24 2016, 08:38.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 30, 21:29
Unknown Object (File)
Tue, Mar 25, 01:58
Unknown Object (File)
Tue, Mar 18, 12:38
Unknown Object (File)
Tue, Mar 18, 11:55
Unknown Object (File)
Sun, Mar 16, 08:16
Unknown Object (File)
Sat, Mar 15, 13:18
Unknown Object (File)
Fri, Mar 14, 05:07
Unknown Object (File)
Thu, Mar 13, 23:07
Subscribers

Details

Summary

Any GitHub payload must have:

  • a X-Github-Event header
  • a X-Github-Delivery header
  • a payload, JSON deserializable as an object

A 400 Bad request error is sent if this is not the case.

Test Plan

Send a Phabricator request to /gate/GitHub/ProjectWithoutSecret

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson retitled this revision from to More thorough validation for GitHub payloads.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson edited edge metadata.
This revision is now accepted and ready to land.Jan 24 2016, 08:39
This revision was automatically updated to reflect the committed changes.