Skip to main content
The GitHub provider enables you to manage repository webhooks, deployment environments, and other GitHub resources through the GitHub API.

Installation

Credentials

Create a GitHub personal access token at github.com/settings/tokens with appropriate scopes and set it as an environment variable:
For webhooks and environments, you’ll need repo scope. For organization resources, you may need admin:org.

Available resources

  • RepositoryWebhook - Repository webhooks for events
  • RepositoryEnvironment - Deployment environments with protection rules
  • Comment - Issue and PR comments

Example usage

Repository webhooks

Deployment environments

Environment variables

Set environment-specific secrets:

Webhook security

Validate webhook signatures in your handler:

Next steps

GitHub API

Complete API reference

Webhooks guide

Learn about resource patterns