Scan your whole stack
Are you using @theholocron/github-client?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.58.0-alpha.54
@theholocron/github-client was last scanned on 23 Nov 2026 at version 1.58.0-alpha.54. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.58.0-alpha.54 LATEST | 23 Nov 2026 | No rules fired |
| 1.58.0-alpha.53 | 23 Nov 2026 | No rules fired |
| 1.58.0-alpha.52 | 23 Nov 2026 | No rules fired |
| 1.58.0-alpha.51 | 22 Nov 2026 | Not shown |
| 1.58.0-alpha.50 | 21 Nov 2026 | Not shown |
Findings for v1.58.0-alpha.54. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.58.0-alpha.54; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
TypeScript client for the GitHub REST API, built on @theholocron/http-client.
pnpm add @theholocron/github-client
import { createGitHubClient } from "@theholocron/github-client";
const client = createGitHubClient({ token: process.env.GITHUB_TOKEN! });
// Repos
const repo = await client.repos.getRepo("owner/name");
// Labels
const labels = await client.labels.listLabels("owner/name");
await client.labels.createLabel("owner/name", {
name: "bug",
color: "d73a4a",
description: "Something isn't working",
});
// Topics
await client.topics.setTopics("owner/name", ["cli", "nodejs"]);
// Git plumbing (blobs, trees, commits, refs, PRs)
const ref = await client.git.getRef("owner/name", "main");
const blob = await client.git.createBlob("owner/name", "file contents");
| Namespace | Methods |
|---|---|
user |
getCurrentUser |
repos |
getRepo, updateRepo, getContents |
security |
enableVulnerabilityAlerts, enableAutomatedSecurityFixes, enableSecretScanning, enablePrivateVulnerabilityReporting, enableDependencyGraph, enableCodeScanning, disableDefaultCodeScanning |
rulesets |
listRulesets, createRuleset, updateRuleset |
branches |
protectBranch |
workflows |
listRuns, getRun |
secrets |
listSecrets, getPublicKey, putSecret, deleteSecret |
environments |
listEnvironments, upsertEnvironment, deleteEnvironment |
issues |
listIssues, getIssue, createIssue, updateIssue, addLabels, removeLabel, createComment, listMilestones |
labels |
listLabels, createLabel, updateLabel, deleteLabel |
topics |
setTopics |
properties |
setProperties |
git |
getRef, getCommit, getTree, getContents, putContents, createBlob, createTree, createCommit, createRef, updateRef, createPull |
checks |
createCheckRun |
GitHub accepts at most 50 annotations per check-run request. Slice with the
exported MAX_CHECK_RUN_ANNOTATIONS constant rather than hardcoding it:
import { MAX_CHECK_RUN_ANNOTATIONS } from "@theholocron/github-client";
output.annotations = findings.slice(0, MAX_CHECK_RUN_ANNOTATIONS);
GitHub's own inbound-webhook mechanics — signature verification and
header/payload shapes — as standalone functions, not part of
createGitHubClient(): these verify a delivery this package's consumer
received, not an outbound REST call, so they need a webhook secret
instead of an API token.
import {
parseGitHubWebhookHeaders,
verifyGitHubWebhookSignature,
type GitHubPushWebhookPayload,
} from "@theholocron/github-client";
const { event, delivery, signature } = parseGitHubWebhookHeaders(req.headers);
const ok = verifyGitHubWebhookSignature({ body: rawBody, signature, secret: webhookSecret });
verifyGitHubWebhookSignature({ body, signature, secret }) — X-Hub- Signature-256 verification (HMAC-SHA256 over the raw body,
timingSafeEqual-compared). Returns false for any failure to verify
(empty secret, missing/malformed signature, mismatch) — never throws;
the caller decides how to surface that.
parseGitHubWebhookHeaders(headers) — extracts event, delivery, and
signature from GitHub's three webhook headers, case-insensitively.
GitHubInstallationWebhookPayload, GitHubPushWebhookPayload,
GitHubPullRequestWebhookPayload — the delivery body shapes, scoped to
the fields a consumer reads today (not a full re-typing of every field
GitHub sends).
A consumer owns what to do with a verified delivery — which event
categories matter, how to normalize them into its own domain shape.
@theholocron/sentinel's parseWebhookEvent() is the reference
consumer.
A signed App JWT, exchanged for a short-lived installation access token,
exchanged for a ready-to-use GitHubClient — Web Crypto only
(globalThis.crypto/CryptoKey, no node:crypto), so it runs unchanged
on Cloudflare Workers (no nodejs_compat flag needed) and in Node.
import { createInstallationClient } from "@theholocron/github-client";
const client = await createInstallationClient(
{ appId: process.env.GITHUB_APP_ID!, privateKey: process.env.GITHUB_APP_PRIVATE_KEY! },
installationId // from the webhook payload that triggered this — never hardcoded (D10)
);
const repo = await client.repos.getRepo("owner/name");
privateKey accepts either PEM format GitHub hands out — PKCS#1 (an
RSA PRIVATE KEY-headered PEM block, the default download) or PKCS#8
(a plain PRIVATE KEY-headered PEM block); importRsaPrivateKey
(internal) wraps a PKCS#1 key in the PKCS#8 DER structure
SubtleCrypto.importKey() requires — Web Crypto only accepts PKCS#8
directly.
Lower-level pieces, if you need to manage the installation token's lifetime yourself (it lasts about an hour) rather than fetching one per call:
createAppJWT(creds) — signs the App-level JWT (not installation-scoped; only good for requesting an installation token, never for calling the REST API directly).getInstallationAccessToken(creds, installationId) — exchanges that JWT for { token, expiresAt }.@theholocron/sentinel's webhook handler is the reference consumer —
one App, N installations across N orgs/accounts, the same registration.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.