Skip to main content
webhooks.github() verifies the HMAC-SHA256 signature GitHub sends in x-hub-signature-256 on every request.
/trigger/github.ts

Set up GitHub

  1. Start trigger dev or deploy, then copy the endpoint’s Webhook URL from the Webhooks page.
  2. Choose Generate secret on the Trigger.dev endpoint and copy the value. GitHub accepts a secret you choose.
  3. Create the webhook. For a repository webhook with the gh CLI:
    Use orgs/ORG/hooks for an organization webhook. For a GitHub App, set the webhook URL and secret in the app’s settings. Set the content type to json.
  4. Trigger an event in the repository, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.