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. -
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.