Skip to content

answerdigital/github-member-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Member Log

A simple Cloudflare Worker to receive a GitHub Webhook and send member/collaborator add/remove events to Slack.

Deploy With Cloudflare

Requires the following:

  • GitHub organisation with admin access to set up webhooks
  • Slack workspace with an incoming webhook to post to a channel
  • A Cloudflare account

Deploy to Cloudflare Workers

Manual Deploy

Clone this repository and set the following environment variables:

  • CF_ACCOUNT_ID - the Cloudflare account ID from your dashboard
  • CF_API_TOKEN - a Cloudflare API token - use the "Edit Cloudflare Workers" template
  • API_SECRET - the shared secret that will be used to sign the GitHub payloads
  • SLACK_WEBHOOK - the Slack incoming webhook URL

You can also change wrangler.toml to alter the worker name or define custom routes.

GitHub Setup

Create a Github webhook and set the following settings:

  • Payload URL - your worker URL (e.g. https://github-member-log.ACCOUNT.workers.dev) or custom route
  • Content type - application/json
  • Secret - the shared secret from above
  • Events to trigger the webhook:
    • Collaborator add, remove, or changed
    • Organizations

About

Cloudflare Worker to send GitHub user changes to Slack

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published