Conversation
Agent-Logs-Url: https://github.com/ffflorian/node-packages/sessions/d9b89446-662a-44ba-8de2-a40e824d3a02 Co-authored-by: ffflorian <5497598+ffflorian@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ffflorian/node-packages/sessions/d9b89446-662a-44ba-8de2-a40e824d3a02 Co-authored-by: ffflorian <5497598+ffflorian@users.noreply.github.com>
…le support Agent-Logs-Url: https://github.com/ffflorian/node-packages/sessions/d9b89446-662a-44ba-8de2-a40e824d3a02 Co-authored-by: ffflorian <5497598+ffflorian@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ffflorian/node-packages/sessions/d9b89446-662a-44ba-8de2-a40e824d3a02 Co-authored-by: ffflorian <5497598+ffflorian@users.noreply.github.com>
|
@copilot CI is failing - run |
Agent-Logs-Url: https://github.com/ffflorian/node-packages/sessions/7676a25b-8204-45d7-b983-f8df4afd6446 Co-authored-by: ffflorian <5497598+ffflorian@users.noreply.github.com>
|
@copilot Is the package aligned with the GitHub webhooks documentation (https://docs.github.com/en/webhooks)? If no, fix it. |
Agent-Logs-Url: https://github.com/ffflorian/node-packages/sessions/0d7902c8-e65a-4b77-9b13-2dc04fee54bb Co-authored-by: ffflorian <5497598+ffflorian@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ffflorian/node-packages/sessions/0d7902c8-e65a-4b77-9b13-2dc04fee54bb Co-authored-by: ffflorian <5497598+ffflorian@users.noreply.github.com>
It wasn't aligned. I've added the following to match the GitHub webhooks documentation:
|
|
@copilot create a dockerfile building and then serving the app on port 8080 |
Agent-Logs-Url: https://github.com/ffflorian/node-packages/sessions/f65eb451-9b90-45a6-9a04-30a571b05f28 Co-authored-by: ffflorian <5497598+ffflorian@users.noreply.github.com>
Added a multi-stage Dockerfile that builds the TypeScript source and serves the app on port 8080. Build from the repo root: Configuration via environment variables ( |
Add a new
webhook-forwarderpackage that opens a server, receives webhooks, and forwards them to configured target URLs using NestJS as the backend framework. Aligned with the GitHub Webhooks documentation.Features
.webhook-forwarderrc.json,.webhook-forwarderrc.yml,webhook-forwarder.config.js, etc.WEBHOOK_FORWARDER_HOST,WEBHOOK_FORWARDER_PORT,WEBHOOK_FORWARDER_TARGET,WEBHOOK_FORWARDER_SECRET,WEBHOOK_FORWARDER_TIMEOUT)secretfield that validatesX-Hub-Signature-256using HMAC-SHA256 with timing-safe comparison (crypto.timingSafeEqual), returning 401 for missing or invalid signaturesX-GitHub-Event,X-GitHub-Delivery,X-GitHub-Hook-ID, etc.) to the targethost,content-length,transfer-encoding,connection)Files
packages/webhook-forwarder/- Full package with NestJS source, CLI, config support, tests, Dockerfile, and documentationAGENTS.md- Updated with new package entryyarn.lock- Updated with new dependenciesTesting