Clarify that X-GitHub-Delivery
is unique per event, not per delivery
#32822
Labels
content
This issue or pull request belongs to the Docs Content team
help wanted
Anyone is welcome to open a pull request to fix this issue
SME reviewed
An SME has reviewed this issue/PR
test-create-tracking-issue
Creates and links an SME review tracking issue internally
webhooks
Content related to webhooks
Projects
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/webhooks/webhook-events-and-payloads#delivery-headers
https://docs.github.com/en/webhooks/using-webhooks/best-practices-for-using-webhooks#use-the-x-github-delivery-header
What part(s) of the article would you like to see updated?
https://docs.github.com/en/webhooks/webhook-events-and-payloads#delivery-headers
https://docs.github.com/en/webhooks/using-webhooks/best-practices-for-using-webhooks#use-the-x-github-delivery-header
Additional information
Hi there!
I was experiencing a puzzling issue for a while where were receiving two webhook event payloads with the same
X-GitHub-Delivery
GUID. At first, I assumed it was our infrastructure duplicating something because I assumed that all payloads from GitHub would have a uniqueX-GitHub-Delivery
. However, upon further experimentation, I was able to create a scenario which sends two different payloads with the sameX-GitHub-Delivery
GUID by creating two GitHub Apps. This leads me to believe thatX-GitHub-Delivery
is unique per GitHub event, not unique per delivery as the documentation implies. Further, this means the guidance in this section is nuanced because there are cases where I want to handle the webhook differently based on which App is sending the event, which means excluding payloads based onX-GitHub-Delivery
isn't always valid.Below are some screenshots showing the same
X-GitHub-Delivery
from two different GitHub Apps.1. I created two GitHub Apps to send webhook events to two different callback URLs.
2. This screenshot shows the same
X-GitHub-Delivery
GUID routed to two destinations.Additionally, it shows unique Amazon CloudFront and Amazon Load Balancer IDs for the web request.
3. This screenshot shows the same
X-GitHub-Delivery
with two differentapp_id
s.The text was updated successfully, but these errors were encountered: