Skip to main content
Version: Next

@backstage/plugin-events-backend-module-github

Home > @backstage/plugin-events-backend-module-github

The module github for the Backstage backend plugin "events-backend" adding an event router and signature validator for GitHub.

Classes

Class

Description

GithubEventRouter

Subscribes to the generic github topic and publishes the events under the more concrete sub-topic depending on the x-github-event provided.

Functions

Function

Description

createGithubSignatureValidator(config)

Validates that the request received is the expected GitHub request using the signature received with the x-hub-signature-256 header which is based on a secret token configured at GitHub and here.

See https://docs.github.com/en/developers/webhooks-and-events/webhooks/securing-your-webhooks for more details.