sheriff icon indicating copy to clipboard operation
sheriff copied to clipboard

Add logic to ensure that if someone de-activates the webhook we get notified with a critical alert

Open MarshallOfSound opened this issue 4 years ago • 0 comments

Currently, GitHub exposes an event for someone deleting the webhook (meta.deleted). But users can also de-activate the webhook an no events are fired. If we get a token with the correct permissions we can poll https://api.github.com/orgs/electron/hooks and ensure that we are still present in the hooks list and active === true. If not we can fire a critical alert.

MarshallOfSound avatar Apr 15 '20 03:04 MarshallOfSound