For the complete documentation index, see llms.txt. This page is also available as Markdown.

GitHub deployment pipeline

Send GitHub pushes, merged pull requests and releases to ilert, so alerts arrive with the change that most likely caused them.

Two ways to get GitHub events into ilert, and they answer different questions.

Use it when
Reports

Webhook

You want coverage now, across every repository, with nothing checked in

That a commit, merge, or release happened

You care whether the rollout actually succeeded

That a deployment finished, and how it went

The webhook is the faster start and is enough for most accounts. Reach for the Action when "merged to main" and "live in production" are hours and a pipeline apart.

Create the pipeline

Follow Create a deployment pipeline and choose type GitHub. Both setups below need the URL from the pipeline's detail view.

Two settings on that form matter here:

  • Branch filters arrive prefilled with main and master. Pushes to any other branch are dropped. Clear the field to keep them all.

  • Event filters — Pull request (merged), Commit (push), Release (published) — decide which of the webhook's events are recorded. Leave it empty and everything GitHub sends is kept.

Prefer Release (published). It is the easiest to set up and correlates best, because a release is a thing you actually shipped. Push events from an organization-wide webhook can run to hundreds a day, and a correlation that matches everything explains nothing.

Set up an organization webhook

One webhook covers every repository in the organization, which is why this is the fastest way to get useful coverage. Filter in ilert rather than in GitHub.

1

Open the webhook form

In GitHub, go to your organization's Settings → Webhooks → Add webhook.

The GitHub organization settings page with Webhooks selected in the sidebar.
Organization settings, not repository settings — this is the level that covers everything.
2

Point it at ilert

Paste the pipeline's URL into Payload URL, and change Content type to application/json — GitHub's default is application/x-www-form-urlencoded, which ilert does not accept.

Leave Secret empty and SSL verification enabled.

3

Choose the events

Select Let me select individual events, then tick Pull requests, Pushes, and Releases — or tick all of them and narrow it later in the pipeline's event filters, which does not require touching GitHub again.

The GitHub individual event selection list, showing Pull requests among the available event types.
Ticking generously here and filtering in ilert keeps later changes on the ilert side.
4

Add it and confirm

Click Add webhook, then push a commit or publish a release and check that a row appears under Alerting → Deployment events in ilert. GitHub's own Recent Deliveries tab shows the response ilert returned.

Set up a repository webhook

For a single repository, the form is the same one level down: repository Settings → Webhooks → Add webhook, then follow the steps above from Point it at ilert.

The GitHub repository settings page with Webhooks selected in the sidebar.
Same form, scoped to one repository.

Report from a workflow instead

A webhook fires when the code moved in GitHub. If you want the event to mean the rollout finished, send it from the workflow that does the rolling out, using the ilert deployment events action.

Store the pipeline's integration key as a repository secret — ILERT_DEPLOYMENT_PIPELINE_INTEGRATION_KEY below — rather than inlining it.

Mapped to repository events:

Or reporting the outcome of your own deploy job, which is the version worth the extra work:

if: always() is what makes the second workflow useful: without it the notification job is skipped when deploy fails, and ilert only ever hears about the deployments that went well.

Last updated

Was this helpful?