Capability

GitHub — organization webhooks

Let the pod register its own inbound webhook sources on a GitHub organization: list, create and update an organization webhook, and ping it. An agent asks with inbound_source.connect (host github); you approve once, and the pod creates the source and gives its secret to GitHub itself, so nobody pastes or sees it. Separate from github-read and github-merge.

What your agent can do with it

  • github_webhooks_apiAuthenticated access to the GitHub REST API for the organization webhook verbs. `config.baseUrl` pins api.github.com; `config.auth` injects the vaulted token as `Authorization: Be…
  • github_list_org_hooksThe webhooks of one GitHub organization: each hook's id, the URL it posts to, its events and whether it is active (never its secret). Returns { count, hooks: [{ id, url, contentTy…
  • github_create_org_hookCreates ONE organization webhook that posts JSON to `url`, signed with `secret` (X-Hub-Signature-256), for `events`. To register one of the pod's inbound sources, use the Synap Co…
  • github_update_org_hookUpdates ONE organization webhook: its URL, its secret and its events, and turns it on. GitHub overwrites the secret on every update, so the secret is always sent. To give one of t…
  • github_ping_org_hookAsks GitHub to send a `ping` event to ONE organization webhook (GitHub answers 204): proof that the hook's URL and secret reach the receiver. Side-effecting: routes through the ca…

What you will need

Asked for at install. Stored in your pod, never on our servers.

  • GitHub token (organization webhooks)A fine-grained GitHub token of an OWNER of the organization. Resource owner = the organization; Organization permissions: Webhooks: Read and write (nothing els…
  • {{name}} GitHub token (organization webhooks)SecretThe installer's own GitHub token with the organization permission Webhooks (read and write), used only by the github_*_org_hook verbs. Not pod-wide.