Skip to Content
IntegrationsWebhooks

Webhooks

CodeStax receives and sends webhooks for automated security workflows.

Incoming Webhooks (from SCM Providers)

GitHub Webhooks

Endpoint: Your CodeStax instance receives webhooks at a registered endpoint.

Verification: All requests are verified using HMAC SHA-256 with a shared secret.

Supported events:

EventPayloadAction
pull_request.openedPR details, diff URLTrigger security review
pull_request.synchronizeUpdated PR, new commitsRe-trigger review
pull_request.reopenedReopened PR detailsTrigger security review
pushBranch, commitsTrigger auto-scan

Bitbucket Webhooks

Similar webhook support for Bitbucket pull request events.

Setting Up Webhooks

Webhooks are automatically configured when you:

  1. Import a repository with Auto-scan on Push enabled
  2. Enable PR reviews for a repository

CodeStax registers the webhook on your SCM provider using your OAuth token. No manual configuration is required.

Webhook Security

All incoming webhooks are verified to prevent spoofing:

  • GitHub: HMAC SHA-256 signature in X-Hub-Signature-256 header
  • Bitbucket: Request signing verification

Unverified webhook requests are rejected with a 401 status.

Troubleshooting

ProblemSolution
Webhooks not firingCheck if the webhook is registered in your SCM provider’s settings
Webhook delivery failuresVerify your CodeStax instance is reachable from the internet
401 Unauthorized responsesRe-register the webhook (the secret may have changed)