Webhook verification and delivery
Adapter design. This page specifies the unpublished adapter. Run a request with Octokit and Effect.
Bind standalone Webhooks, createEventHandler, validateEventName, emitterEventNames and App’s transformed webhook receiver. Keep event/action inference, event arrays, wildcard handlers, error handlers and transformed payloads. See the event catalogue. Handler typing must retain an installation client when App supplies one.
| Method | Contract |
|---|---|
sign, verify |
Effects over the original payload string and signature. Preserve false verification results. The methods subpackage also exposes verifyWithFallback for additional secrets. |
verifyAndReceive |
The entry point for untrusted inbound delivery. Pass the original raw payload, signature, name and delivery ID. Delegate rotation/fallback, verification, parsing and dispatch in upstream order. |
receive |
Dispatch an already trusted event. Keep this distinct from verified ingress; never fall back to it on verification failure. |
on, onAny, onError, removeListener |
Register the exact bridged callback, preserve registration identity, remove only the handlers registered by this subscription. Confirm supported removal keys against the types and runtime, particularly error handlers. |
Upstream can run matching handlers concurrently and aggregate failures. Preserve per-handler causes and delivery identity without emitting raw payloads to logs. A Stream subscription must specify queue capacity, overflow behavior and what acknowledgment means. Direct awaited handlers are the parity API. Redelivery may repeat a delivery; durable deduplication and business idempotency belong to the application.
Check. Unicode and whitespace in signed payloads, malformed JSON after valid signing, invalid signature, secret rotation, unknown event/action, wildcard plus named handler, two failing handlers, transformed event and disposal while dispatch is active. Webhooks · GitHub verification guidance