Skip to content

v1.3.0

Choose a tag to compare

@jedbillyb jedbillyb released this 14 May 04:50
· 31 commits to main since this release
b55f96d

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,fork silences stars and forks.
  • BRANCH_FILTER - comma-separated list of branch name patterns. When set, push, create, and delete events from non-matching branches are dropped. Tag refs always pass through. * matches a single path segment, so release/* matches release/v1 but not release/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.


Full changelog