secure-github-webhook
v1.0.2
Published
This webtask middleware helps to secure your GitHub webhook
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-dependenciesmetadata property to the stringified JSON of an object having@webtask/middleware-compilerandsecure-github-webhookproperties 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-compilermetadata property on your webtask to@webtask/middleware-compiler.Set (or add to) the
wt-middlewaremetadata property of your webtask to contain a comma-separated list containingsecure-github-webhook.Set the
GH-WEBHOOK-SECRETsecret to a shared secret.Configure the webtask as a GitHub webhook using the same secret.
