ScottONeal / githooked

githooked is a tiny library and companion CLI tool for handling GitHub webooks.
MIT License
8 stars 1 forks source link

Enable secret configuration and validation #4

Closed ScottONeal closed 8 years ago

ScottONeal commented 8 years ago

Currently, githooked does not support a secret token, which can be set within GitHub when creating the webhook. This is a needed feature to limit instances where non valid origin requests are being made to the githooked instance

Secret should be set in the 3rd argument to githooked, that means this come logically after implementation of #2

githooked('refs/heads/master', 'pushed to master', { secret: 'this is my secret access token' })