secure-github-webhook
v1.0.2
Published
This webtask middleware helps to secure your GitHub webhook
Downloads
10
Maintainers
Readme
Secure Github Webhook Middleware
Usage
To use the Secure Github Webhook middleware requires secret in the GH-WEBHOOK-SECRET
secret that GitHub will use to generate a signature.
Set the
wt-node-dependencies
metadata property to the stringified JSON of an object having@webtask/middleware-compiler
andsecure-github-webhook
properties whose values are the latest version of the @webtask/middleware-compiler module and this module, respectively.{"@webtask/middleware-compiler":"1.1.0","secure-github-webhook":"1.0.0"}
Set the
wt-compiler
metadata property on your webtask to@webtask/middleware-compiler
.Set (or add to) the
wt-middleware
metadata property of your webtask to contain a comma-separated list containingsecure-github-webhook
.Set the
GH-WEBHOOK-SECRET
secret to a shared secret.Configure the webtask as a GitHub webhook using the same secret.