New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@deepseek-ai/dsh-webhook-github

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deepseek-ai/dsh-webhook-github

Signed GitHub HTTP webhook adapter for the DeepSeek Harness webhook runtime

next
Source
npmnpm
Version
0.2.0-rc.2
Version published
Maintainers
2
Created
Source

description: "Signed GitHub webhook adapter for deployments routing authenticated JSON events into the webhook runtime." kind: "package-reference"

@deepseek-ai/dsh-webhook-github

English | 中文

Summary

dsh-webhook-github registers one exact HTTP route on the injected ctx.webServer. It bounds and verifies GitHub's raw JSON body, projects a provider-neutral delivery, calls ctx.webhookRuntime.dispatch(), and returns 202 without waiting for rules or Sessions. Use it when a deployment needs authenticated GitHub ingress for the generic webhook runtime.

Table of Contents

Configuration

KeyMeaning
sourceNon-empty adapter instance carried to rules, such as primary-github.
pathExact non-root pathname without trailing slash, query, or fragment.
secretEnvCredential reference containing the GitHub webhook secret.
maxBodyBytesPositive safe-integer ceiling for the untouched request body.

All fields are required. The secret reference is resolved for every request, so rotation affects the next delivery without reloading the plugin.

HTTP contract

Only POST application/json is accepted. The adapter reads a bounded UTF-8 body, requires X-Hub-Signature-256, X-GitHub-Delivery, and X-GitHub-Event, resolves the secret, verifies HMAC before JSON parsing, and requires a top-level lossless-JSON object. It never logs the secret, signature, or payload.

StatusMeaning
202Verified JSON was dispatched in memory.
400Required header, UTF-8, JSON, or top-level object was invalid.
401Signature was invalid.
405Method was not POST.
413Declared or streamed body exceeded maxBodyBytes.
415Media type was not application/json.
503Credential or webhook runtime was unavailable.

202 does not state that any rule matched or that a Session was created. GitHub event-specific field validation belongs to each rule; the adapter guarantees only authenticated generic JSON.

Dedicated listener composition

The normal Web profile already owns ctx.webServer. Mount another dsh-host-webserver and this adapter inside a group that isolates only webServer; the adapter still inherits credentials and webhookRuntime. The GitHub review guide uses 127.0.0.1:3081/github behind a TLS reverse proxy while the UI remains on port 3080.

Model Experience

Indirectly, through dsh-webhook: this adapter contributes no prompt or tool schema; a matching rule owns the Session request and model-visible text.

KV Cache effect

Independent. Authentication and HTTP dispatch do not touch a model request; any new Session prefix belongs to the consuming rule and runtime.

Known Limitations and Deferred Work

  • No TLS — the injected development WebServer is normally loopback-only behind a TLS reverse proxy or tunnel.
  • Generic payload validation only — rules own validation of the GitHub event fields they consume.
  • No provider acknowledgement of downstream work — 202 precedes arbitrary rule calls and Session creation.
  • No form encoding — GitHub must send application/json; application/x-www-form-urlencoded is rejected.

Dev Note

Working context for maintainers — click to expand

None.

Runtime invariant: No companion is published. Authentication and input validation occur at the exact HTTP operation; dsh-host-webserver owns route/disposer symmetry.

FAQs

Package last updated on 29 Sep 2026

Related posts