gh
Warn
Audited by Socket on Oct 8, 2026
1 alert found:
AnomalyAnomalyscripts/lib.ts
LOWAnomalyLOW
scripts/lib.ts
The code is primarily a GitHub CLI/API utility and contains no clear malicious payload or intentional sabotage. It uses execFile safely without a shell and validates most repository-related inputs. A security issue exists in restRequest(): absolute URLs supplied through the exported REST helpers can bypass the configured GitHub API base and receive the GitHub bearer token. Callers should restrict paths to relative GitHub API paths, for example by rejecting parsed URLs with a nonempty protocol or host before constructing the request. The risk is conditional on untrusted data reaching restJson() or restPost().
Confidence: 97%Severity: 58%
Audit Metadata