Repository navigation
v1.3.0
Three more contributions from @Osheun, including a security fix and two new features.
Security fix - signature verification crash
A malformed X-Hub-Signature-256 header would cause crypto.timingSafeEqual to throw, returning a 500 instead of a clean 401. The fix checks buffer lengths before the comparison, so bad headers are rejected gracefully. The constant-time property is preserved for equal-length inputs.
Event filters (contributed by @Osheun)
Two new optional env vars to control what reaches Discord:
IGNORED_EVENTS- comma-separated list of event names to drop entirely. Example:IGNORED_EVENTS=watch,forksilences stars and forks.BRANCH_FILTER- comma-separated list of branch name patterns. When set,push,create, anddeleteevents from non-matching branches are dropped. Tag refs always pass through.*matches a single path segment, sorelease/*matchesrelease/v1but notrelease/v1/hotfix. Other event types (issues, PRs, comments) are unaffected.
GitHub Actions notifications (contributed by @Osheun)
A new workflow_run handler sends a Discord notification whenever a workflow run completes. Shows the workflow name, result, branch, commit link, and triggering event. Green for success, red for failure and timeout, grey for cancelled, orange for action required. Non-actionable conclusions (skipped, neutral, stale) are silently ignored.
Requires subscribing to the Workflow run event in your GitHub App settings and granting Actions: Read-only repository permission. See the README for setup instructions.
Test suite and CI (contributed by @Osheun)
34 unit tests covering signature verification, the Components V2 and legacy embed builders, Discord routing logic, event filtering, and the push-batching utility. CI runs on Node 20 and 22 against every PR and push to main.