CI/CD Pipelines
Monitor GitHub Actions, GitLab CI and Bitbucket Pipelines runs with pipeline monitors.
Pipeline monitors track the success or failure of your CI/CD builds. When a run finishes, your CI provider sends a webhook to Incidion, and the monitor’s status updates automatically. A failed run opens an incident like any other monitor that goes down.
Supported platforms
| Provider | Webhook events | Authentication |
|---|---|---|
| GitHub Actions | Workflow runs | X-Hub-Signature-256 (HMAC-SHA256 of the body with the secret) |
| GitLab CI (gitlab.com and self-managed) | Pipeline events | X-Gitlab-Token (the secret itself) |
| Bitbucket (Bitbucket Pipelines and other build tools that report build statuses) | Build status created, Build status updated | X-Hub-Signature (HMAC-SHA256 of the body with the secret) |
Each provider has its own webhook URL; a monitor only accepts deliveries on its provider’s URL (any other answers 404).
To record deployments from any CI system, use deployment tracking instead.
1. Create a pipeline monitor
- Open Monitors and tap + (web dashboard: Observe > Monitors, New monitor)
- Select Pipeline as the type
- Provider: GitHub Actions, GitLab CI or Bitbucket Pipelines
- Repository:
owner/repo(e.g.,acme/api; for GitLab the full project path, e.g.acme/backend/api) - Workflow (optional): which runs count, see Filtering; leave empty to monitor all
- Branch (optional): branch name (e.g.,
main); leave empty to monitor all - Tap Create monitor
Incidion generates the webhook URL and a secret. Owners, admins and members find both, with the setup steps for the monitor’s provider, on the monitor’s page (GET /api/v1/webhooks/pipeline/{monitor_id}/info/):
{
"webhook_url": "https://api.incidion.dev/api/v1/webhooks/pipeline/3f1c.../gitlab/",
"secret": "q8V...",
"provider": "gitlab",
"setup_instructions": {"gitlab": {"steps": ["..."]}}
}
The URL ends in /github/, /gitlab/ or /bitbucket/. On a self-hosted install it uses the API’s own host (or API_BASE_URL when that is set).
2. Add the webhook
GitHub Actions
In your GitHub repository:
- Go to Settings > Webhooks
- Click Add webhook
- Payload URL: the webhook URL from Incidion
- Content type:
application/json - Secret: the secret from Incidion
- Which events: Let me select individual events, then check Workflow runs
- Click Add webhook
GitHub sends a ping first, which Incidion answers with {"message": "pong"}.
GitLab CI
In your GitLab project:
- Go to Settings > Webhooks (
https://gitlab.com/<project path>/-/hooks, or the same page on your self-managed instance) - Click Add new webhook
- URL: the webhook URL from Incidion
- Secret token: the secret from Incidion
- Trigger: check Pipeline events only
- Keep Enable SSL verification on and click Add webhook
To test, open the webhook’s Test menu and choose Pipeline events: GitLab sends your last pipeline. A self-managed GitLab must be able to reach Incidion’s API; if it blocks outgoing requests, an administrator allows the host under Admin > Settings > Network > Outbound requests.
Bitbucket
In your Bitbucket repository:
- Go to Repository settings > Webhooks (
https://bitbucket.org/<workspace>/<repo>/admin/webhooks) - Click Add webhook and enter a title, e.g.
Incidion - URL: the webhook URL from Incidion
- Secret: the secret from Incidion
- Status: Active
- Triggers: Choose from a full list of triggers, then under Repository check Build status created and Build status updated
- Click Save
Bitbucket Pipelines reports every pipeline as a build status on the commit, so these two triggers cover it. Build tools that post build statuses to Bitbucket (Jenkins, Bamboo, …) are reported the same way. Bitbucket Data Center’s Test connection (diagnostics:ping) is answered with {"message": "pong"}.
3. Test
Push to your repository or start a pipeline by hand. When the run finishes, the monitor status updates. You can also send a delivery yourself with curl, for example to check the URL and secret from your network:
GitLab (the token is the secret):
curl -X POST "$INCIDION_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-H "X-Gitlab-Event: Pipeline Hook" \
-H "X-Gitlab-Token: $INCIDION_WEBHOOK_SECRET" \
-d '{"object_kind": "pipeline",
"object_attributes": {"id": 1001, "status": "success", "ref": "main",
"created_at": "2026-10-05 10:00:00 UTC",
"finished_at": "2026-10-05 10:02:00 UTC",
"duration": 120},
"commit": {"message": "Test delivery"}}'
Bitbucket (the signature is an HMAC-SHA256 of the exact body):
BODY='{"commit_status": {"state": "SUCCESSFUL", "name": "Test build", "key": "test",
"refname": "main", "url": "https://ci.example.com/builds/1",
"commit": {"hash": "0123456789abcdef"}}}'
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$INCIDION_WEBHOOK_SECRET" | sed 's/^.* //')
curl -X POST "$INCIDION_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-H "X-Event-Key: repo:commit_status_updated" \
-H "X-Hub-Signature: sha256=$SIG" \
--data-binary "$BODY"
GitHub works the same way with X-GitHub-Event: workflow_run, X-Hub-Signature-256 and a {"action": "completed", "workflow_run": {...}} body.
A successful test answers {"message": "Webhook processed", "status": "up", ...}; a test with "failed" (GitLab) or "FAILED" (Bitbucket) opens a real incident and pages the on-call person, so send a success afterwards to resolve it.
Monitor status
Only finished runs count; queued and running ones (GitHub actions other than completed, GitLab created, pending, running, manual, …; Bitbucket INPROGRESS) are ignored. The monitor’s status follows the run’s result:
| GitHub conclusion | GitLab status | Bitbucket state | Monitor status |
|---|---|---|---|
success |
success |
SUCCESSFUL |
Up |
failure, timed_out |
failed |
FAILED |
Down (opens an incident “Pipeline failed: …”) |
cancelled |
canceled |
STOPPED, CANCELLED |
Degraded (a down monitor stays down; a cancelled run neither confirms nor clears a failure) |
skipped, neutral, stale, action_required |
skipped |
any other | No change (stored as the last run) |
| No runs yet | Pending |
The next successful run brings the monitor up and resolves its incident. Pipeline monitors are not re-checked: a failed run counts at once. A delivery repeated with the same run and result (a redelivery, or a webhook added twice) is answered {"message": "Run already recorded"} and counted once; a retried run with a new result counts.
What is stored
For the last run, Incidion keeps the run id (GitHub run id, GitLab pipeline id, Bitbucket Pipelines build number or the commit), the link to the run, the result, and the start and end time; the run’s duration is recorded as the check’s response time. The incident description has the branch, the commit message (Bitbucket: the build status description) and the run link.
Filtering by workflow or branch
If your repository has multiple workflows, create separate monitors (each with its own webhook):
- Monitor 1:
repo: acme/api,workflow: ci.yml(unit tests) - Monitor 2:
repo: acme/api,workflow: deploy.yml(deployment)
What Workflow matches depends on the provider:
| Provider | Workflow matches | Branch matches |
|---|---|---|
| GitHub Actions | the workflow file (ci.yml) or the workflow’s name |
head_branch |
| GitLab CI | the pipeline’s name (workflow: name: in .gitlab-ci.yml); pipelines without a name never match |
ref (branch or tag) |
| Bitbucket | the build status’s name or key; for Bitbucket Pipelines leave it empty | refname |
Runs of other workflows or branches are answered with “Workflow does not match filter” or “Branch does not match filter” and ignored.
Webhook authentication
Every delivery must prove it knows the monitor’s secret, otherwise Incidion answers 401 and records nothing:
- GitHub signs the body:
X-Hub-Signature-256: sha256=<HMAC-SHA256> - GitLab sends the secret token as
X-Gitlab-Token, compared in constant time - Bitbucket signs the body:
X-Hub-Signature: sha256=<HMAC-SHA256>
A wrong secret shows up as 401 in the provider’s delivery log (GitHub Recent Deliveries, GitLab Recent events, Bitbucket View requests). The secret is generated by Incidion and cannot be chosen.
Alerting
A failed run opens an incident and pages people through the project’s escalation policy; no alert rule is needed. Add an alert rule on the monitor to also notify Slack, email or other channels.
Troubleshooting
Webhook not firing
- Check the repository’s webhook settings to see if the webhook exists and is active
- Open the webhook’s delivery log and check the responses (401 means a wrong secret, 404 an unknown or paused monitor, or the URL of another provider)
- Ensure the URL and secret are the ones on the monitor’s page
- Start a pipeline by hand (GitHub: Actions > [Workflow] > Run workflow; GitLab: Build > Pipelines > Run pipeline; Bitbucket: Pipelines > Run pipeline)
Monitor shows pending
The monitor is pending until a run finishes. Push to your repo or start a pipeline by hand to generate the first run.
Status not updating
- Ensure the workflow and branch match the monitor’s filters exactly (see the table above)
- Check that the webhook sends the right events (GitHub: Workflow runs; GitLab: Pipeline events; Bitbucket: Build status created and Build status updated)
- Check that the monitor is not paused and its project is not archived (such deliveries are answered 200 but ignored)