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, Jan 29, 11:04
Unknown Object (File)
Wed, Jan 29, 11:04
Unknown Object (File)
Wed, Jan 29, 11:04
Unknown Object (File)
Wed, Jan 29, 11:04
Unknown Object (File)
Wed, Jan 22, 11:39
Unknown Object (File)
Sun, Jan 19, 18:24
Unknown Object (File)
Wed, Jan 15, 06:25
Unknown Object (File)
Sun, Jan 12, 07:15
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.