Work with a user's GitHub repositories, issues and pull requests, and receive signed webhooks.
This profile ships with Kirak. Add "integrations" to modules in kirak.json, then name the profile as below. There is nothing to download, and a copy in your project's integrations/ folder is an error.
| Variable | Holds |
|---|---|
KIRAK_INTEGRATION_GITHUB_CLIENT_SECRET | The OAuth client secret from the vendor's console. Secret: keep it out of kirak.json and out of source control. |
KIRAK_INTEGRATION_GITHUB_WEBHOOK_SECRET | Checks the signature of each webhook delivery. Secret: keep it out of kirak.json and out of source control. |
KIRAK_AUTH_ENCRYPTION_KEYS | Encrypts stored tokens. Shared by every integration; the module refuses to start without it. |
The names follow the integration's name in kirak.json (github here). Name it something else, such as github_sales, and the variables change to match.
Register this as the redirect (callback) URL in the vendor's console, with your app's address in place of <your-app> (the base_url in kirak.json):
https://<your-app>/integrations/github/callback
https://<your-app>/integrations/github/callback.integrations.providers.github.client_id, and the client secret in the environment as KIRAK_INTEGRATION_GITHUB_CLIENT_SECRET. Never put the secret in kirak.json.KIRAK_INTEGRATION_GITHUB_WEBHOOK_SECRET. Kirak checks each delivery’s signature with it.The vendor's own guide · Instructions out of date? ·Suggest an edit
{
"integrations": {
"providers": {
"github": {
"type": "oauth2",
"profile": "github",
"client_id": "your-client-id",
"scope": [
"read:user"
]
}
}
}
}Merged into the profile: scope replaces the profile's default scopes.
Kirak receives GitHub's webhooks at /integrations/github/webhooks, checks the signature (X-Hub-Signature-256), drops duplicates and calls your handler for each event, named from X-GitHub-Event.
Report a problem ·Suggest an edit to profile.json ·Add a profile ·Vendor docs the profile was checked against
Product names and logos are trademarks of their respective owners. Their use does not imply endorsement. To ask for this icon to be removed, email trademark@kirak.io.