In this article
A repeated delivery GUID identifies a redelivery relationship; successful processing still needs its own durable state.
Redelivery preserves a documented identifier
GitHub documents that a requested webhook redelivery carries the same X-GitHub-Delivery value as the original. Its repository delivery API illustrates separate delivery records with different numeric identifiers but the same GUID.
These identifiers answer different questions. The GUID can associate repeated receipt of a delivery, while the numeric record identifies a particular delivery observation in the management API. Treating every new numeric record as a new business event can repeat downstream work.
Receipt and processing have separate outcomes
A receiver may accept a webhook into a queue and respond before the associated work finishes. GitHub’s best-practices documentation recommends asynchronous processing when needed to respond promptly. A successful HTTP acknowledgment consequently does not establish completion of a later deployment or indexing task.
A proposed receiver records authenticated receipt separately from queued, running and completed work. When the same GUID returns, its decision depends on that state. Ignoring every previously seen identifier can discard recovery after an earlier attempt was received but never completed.
Authenticate before trusting correlation metadata
A delivery identifier is not a cryptographic proof of origin. GitHub documents validation through the webhook secret and signature over the received payload. Identifier-based deduplication and signature verification solve different problems.
Keep validation ahead of durable event acceptance. Otherwise an unauthenticated request could occupy an identifier or trigger a state transition. This article provides no webhook endpoint and performs no redelivery; it describes the boundary an implementation would need to define.
Event type and action determine the operation
GitHub distinguishes the event header from the action in the payload and advises checking both. An identifier alone does not describe which transition a consumer should perform. Preserve that interpretation with the version of the handler that processed the record.
For example, receiving an issue event should not automatically imply that every action requires the same update. A consumer can deliberately acknowledge an irrelevant action without scheduling work, while retaining an outcome different from a failed processing attempt.
A delivery ledger needs a recovery rule
Choose how concurrent duplicate receipts coordinate and how an unfinished processing state becomes eligible for recovery. The transport identifier does not supply atomic application updates or an unlimited history of completed work.
An informative operational record connects the hook identity, GUID, delivery observation and processing outcome. It should avoid copying unnecessary payload content. This separates transport evidence from application effects and makes a manual redelivery intelligible without asserting exactly-once execution merely because a deduplication key exists.
Primary references
GitHub webhook best practices.
GitHub repository delivery API.
Related explanations: Explicit operation idempotency; Request correlation.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.