Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@theholocron/github-client

Latest version: v1.58.0-alpha.54

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: thenewton
0 Stars
0 Forks
114 Versions
43.5K Downloads
TypeScript Repo language

Scan summary

@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.

  • Releases: 114 versions; the latest 5 were published within 3 days (21–23 Nov 2026).
  • Findings: No rules fired in version 1.58.0-alpha.54.
  • Downloads: 43,485 downloads.

Versions

114 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 1.58.0-alpha.54

Findings

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.

README

The publisher’s own README, as collected from the registry.

@theholocron/github-client

TypeScript client for the GitHub REST API, built on @theholocron/http-client.

Install

pnpm add @theholocron/github-client

Usage

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");

Namespaces

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);

Webhooks

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.

GitHub App authentication

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.

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @theholocron/github-client

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229