Webhook Setup
Auto-trigger code reviews ยท HMAC-SHA256 signature verification ยท Supports Push & PR/MR events
GitHub
GitLab
Bitbucket
๐ Webhook Endpoint
https://api.codeguardian.ai/api/v1/webhook/github
Verification:
GitHub signs the request body with the Secret below; reviews trigger only after server verification
X-Hub-Signature-256 โ HMAC-SHA256 signatureGitHub signs the request body with the Secret below; reviews trigger only after server verification
๐ Webhook Secret
whsec_6f3a9d2e1b4c7f8a0e5d3c2b1a9f8e7d6c5b4a3f2e1d0c
๐ก Listen Events
โ
pushโ
pull_requestpull_request_review
create
release
workflow_run
๐ Setup Steps
1
Go to GitHub Repository Settings
Settings โ Webhooks โ Add webhook
2
Enter Payload URL
Paste the endpoint URL above into the Payload URL field
3
Set Content type
Select
application/json4
Enter Secret
Paste the generated Secret into the Secret field for HMAC-SHA256 verification
5
Select Events and Save
Check push and pull_request events, click Add webhook
๐ Webhook Endpoint
https://api.codeguardian.ai/api/v1/webhook/gitlab
Verification:
Enter the Token below in GitLab Webhook config; server validates request header consistency
X-Gitlab-Token โ static token matchEnter the Token below in GitLab Webhook config; server validates request header consistency
๐ GitLab Token
glhk_9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d
๐ก Listen Events
โ
push eventsโ
merge_request eventstag push events
pipeline events
๐ Webhook Endpoint
https://api.codeguardian.ai/api/v1/webhook/bitbucket
Verification:
Enter the Secret Key in Bitbucket Webhook config
X-Hub-Signature โ HMAC-SHA256 signature (same as GitHub)Enter the Secret Key in Bitbucket Webhook config
๐ Secret Key
bbhk_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f
๐ก Listen Events
โ
repo:pushโ
pullrequest:createdpullrequest:updated
pullrequest:fulfilled
๐ Recent Webhook Event Log
14:32:10
13:05:44
12:18:03