by langgenius · v1.5.0
GitHub is an online software source code hosting service.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
GitHub Trigger (Webhooks)
Overview
X-Hub-Signature-256, X-GitHub-Event) before Dify receives the resulting trigger events.Prerequisites
read:user admin:repo_hook).Step-by-step Setup
.difypkg in Plugin Center (Plugins → Import).uv sync --project . or run commands with uv run --project ..GitHub Settings → Developer settings → OAuth Apps → New OAuth App
URL: https://github.com/settings/applications/new
Configuration:
https://<your-dify-host>/console/api/plugin/oauth/callbackCapture the generated Client ID and Client Secret.
Adjust scopes if needed; the plugin defaults to read:user admin:repo_hook, which allows webhook management without full repo access.
client_id: from the OAuth App.client_secret: from the OAuth App.scope (optional): keep the default unless additional GitHub APIs are required.access_tokens: paste the PAT; ensure it has the repository hook permissions mentioned above.repository from the dropdown (format owner/repo).events. Defaults cover most repository-level activities; you can narrow the list to reduce noise.webhook_secret if you maintain the webhook manually. If Dify provisions the webhook, a secret is generated automatically and stored with the subscription.application/json. The trigger only accepts raw JSON payloads (Content-Type: application/json) and will reject application/x-www-form-urlencoded.https://<dify-host>/triggers/plugin/<subscription-id>) for manual setups or diagnostics.
What happens automatically
repos/{owner}/{repo}/hooks API to create (or later delete) the webhook, using JSON payloads with content_type=json and the shared secret.X-Hub-Signature-256) on every delivery.DELETE repos/{owner}/{repo}/hooks/{hook_id}.Supported Events (high-level)
issues, issue_comment, pull_request, and related review/comment events.check_run, check_suite, workflow_run, workflow_job, deployment, deployment_status.push, ref_change (create/delete), commit_comment, star, watch, fork, public, repository.project, project_card, project_column, discussion, discussion_comment, label, milestone, member.code_scanning_alert, dependabot_alert, repository_vulnerability_alert, secret_scanning.branch_protection_configuration, branch_protection_rule, repository_ruleset, custom_property_values.How It Works
payload in form-encoded requests) and captures X-GitHub-Event.deployment_status → deployment_status_created, create/delete → ref_change).{"status": "ok"} response so GitHub considers the delivery successful.Troubleshooting
admin:repo_hook scope and that the actor is an admin on the repository.References