Git

Push Webhooks

When a push updates one or more branches or tags, Corigin asynchronously sends one signed HTTP POST containing every updated ref to the repository's configured public HTTPS endpoint.

Configure a webhook

  1. 1

    Configure the webhook

    corigin repos webhook set REPO_ID WEBHOOK_URL
  2. 2

    Save the signing secret

    The command prints the signing secret. It is shown only once.

Webhook request

{
  "id": "EVENT_ID",
  "type": "push",
  "createdAt": "2026-08-11T18:42:00Z",
  "repoId": "REPO_ID",
  "refs": [
    {
      "name": "refs/heads/main",
      "before": "BEFORE_COMMIT_OID",
      "after": "AFTER_COMMIT_OID",
      "force": false
    }
  ]
}
HeaderValue
Content-Typeapplication/json
Corigin-Event-IdThe payload id
Corigin-Event-Typepush
Corigin-Webhook-TimestampUnix timestamp in seconds
Corigin-Webhook-Signaturev1=<hex digest>

Verify the signature

Compute the hexadecimal HMAC-SHA256 digest of the decimal timestamp, a period, and the exact raw request body using the signing secret. The expected header is v1= followed by that digest.