Skip to main content

@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

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

Functions

FunctionDescription
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.