For starters, that "just" is swallowing:
- Identify the relevant tokens you want to scan for, and create regular expressions to capture them.
- Create a token alert service which accepts webhooks from GitHub that contain the token scanning message payload.
- Implement signature verification in your token alert service.
- Implement token revocation and user notification in your token alert service.
And that would replace one piece of what this does.