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)
Wed, Nov 13, 03:12
Unknown Object (File)
Sun, Nov 10, 07:46
Unknown Object (File)
Sat, Nov 9, 14:50
Unknown Object (File)
Fri, Nov 8, 23:36
Unknown Object (File)
Fri, Nov 8, 17:06
Unknown Object (File)
Fri, Nov 8, 16:41
Unknown Object (File)
Thu, Nov 7, 17:16
Unknown Object (File)
Thu, Nov 7, 16:58
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 Passed
Unit
Tests Passed
Branch
T695

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.