Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 895 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 895 Bytes

gatekeeper

send webhooks to this app to run github user management

Developer setup

  • Create a GitHub organization for testing
  • Create a fine-grained access token
    • Restrict to a single repository that contains the workflow(s) you want to trigger
    • Repository permissions should be:
      • Read access to metadata
      • Read and write access to actions
  • Create a workflow to call (or use github user management workflow)
  • Setup webhooks at organization level:

Required env variables

GITHUB_DISPATCH_URL=https://api.github.com/repos/<GITHUB_ORG_NAME>/<GITHUB_REPO_NAME>/actions/workflows/<WORKFLOW_TO_CALL>.yaml/dispatches
GITHUB_TOKEN=<PAT_TOKEN>