Quick Start
Install the plugin:corsair.ts
Authentication
Supported Auth Types
The GitHub plugin supports two authentication methods:api_key- Personal Access Token authenticationoauth_2- OAuth App authentication
API Key Authentication (Personal Access Token)
Store the token using the Corsair CLI:OAuth 2.0 Authentication
Store your OAuth app credentials, then kick off the flow:Webhook Secret
Store the webhook secret using the CLI:Options
The GitHub plugin accepts the following configuration options:| Option | Type | Description |
|---|---|---|
authType | 'api_key' | 'oauth_2' | Authentication method |
credentials | object | Credentials object (token for api_key, clientId/clientSecret for oauth_2) |
webhookSecret | string | Webhook signing secret (optional) |
hooks | object | Endpoint hooks for custom logic |
webhookHooks | object | Webhook hooks for event handling |