All Products
Search
Document Center

EventBridge:Integrate GitHub with EventBridge

Last Updated:Mar 11, 2026

GitHub is a version management tool used by development teams. When multiple developers collaborate on a GitHub repository, tracking code changes across the team requires manual effort. EventBridge solves this by using an HTTP event source to integrate with GitHub, allowing developers to effectively follow code changes and improve collaboration efficiency.

How it works

EventBridge receives GitHub events through an HTTP/HTTPS event source that acts as a webhook endpoint. When an event occurs in your GitHub repository, GitHub sends a POST request to this endpoint, and EventBridge routes the event to your custom event bus. From there, you can create rules to forward events to downstream targets.

The integration requires three steps:

  1. Create an HTTP event source in EventBridge to generate a webhook URL.

  2. Add the webhook URL to your GitHub repository.

  3. Verify that events flow from GitHub to EventBridge.

Prerequisites

Before you begin, make sure you have:

Step 1: Create an HTTP event source in EventBridge

Create an HTTP/HTTPS trigger event source in the EventBridge console. For detailed instructions, see Create a custom event source of the HTTP/HTTPS Events type.

Configure the following parameters:

ParameterValue
Request TypeHTTP & HTTPS
Request MethodPOST
Security ConfigurationOptional

After the event source is created, find it in the event source list and click Details. Copy the Internet request URL -- this is the webhook URL that GitHub sends events to.

EventBridge event source details showing the Internet request URL

Step 2: Configure a webhook in GitHub

  1. Log on to GitHub and open the target repository.

  2. Click the Settings tab, then click Webhooks in the left-side navigation pane.

  3. In the upper-right corner, click Add webhook and configure the following parameters: Click Add webhook to save.

    ParameterValue
    Payload URLThe Internet request URL copied from Step 1
    Content typeapplication/json
    Which events would you like to trigger this webhook?Just the push event.

    GitHub webhook configuration page

  4. Push a change from your local repository to GitHub to trigger the webhook.

Step 3: Verify the integration

  1. Log on to the EventBridge console.

  2. In the top navigation bar, select the region where your custom event bus is deployed.

  3. In the left-side navigation pane, click Event Buses.

  4. In the left-side navigation pane, click Event Tracking to view incoming events. If the integration is working, the push event from GitHub appears in the event list.