| name | github-webhook-trigger |
| description | Verify and normalize GitHub webhook payloads for deployment automation. Use when a GitHub push, deployment_status, or workflow_run event arrives. |
GitHub Webhook Trigger
Use when
- GitHub sends a webhook.
- Another agent supplies a GitHub event payload.
- A deployment cycle must be started from a commit notification.
Workflow
- Verify
X-Hub-Signature-256 if GITHUB_WEBHOOK_SECRET is set.
- Extract event, repo, branch, SHA, sender, and delivery ID.
- Reject unsupported branches or unsafe events.
- Write
runs/<run-id>/event.json.
- Call Stage 02.
Script
node scripts/server.mjs
Output
JSON only from endpoints. Run artifacts on disk.