| Did you know ... | Search Documentation: |
| webhook.pl -- Authorize GitHub webhook requests |
Handlers such as /blog/pull and /examples/pull run `git pull`, rebuild indexes and purge the CDN. They may only be triggered by
X-Hub-Signature-256 header: an HMAC-SHA256 of the
request body using the secret. The secret is the setting
webhook:secret, set in data/private/plweb.conf as
setting(webhook:secret, 'the secret').
and in the GitHub webhook configuration (Settings/Webhooks/Secret).
Anything else is refused with 403 (Forbidden).
webhook_authorized(+Request) is det