Skip to main content

Github

@hivemq/githubv2026.05.22.67· 1d agoMODELS
01README

GitHub models for swamp. Currently provides @hivemq/github/token, which audits a single GitHub token. A token model instance is bound to one token (supplied inline or read from a file at audit time). Its audit method calls the API as that token and records validity, the token type inferred from the secret prefix (classic PAT, fine-grained PAT, OAuth, GitHub App user/installation), the issuing app (OAuth client id), and the acting identity (login and account) — so you can identify what a token is and where it came from without exposing its value.

02Models1
@hivemq/github/tokenv2026.05.22.1github/token.ts
fn audit()
Audit the configured GitHub token: report validity, token type, issuing app (client ID), and the acting identity (login/account)

Resources

tokenAudit(infinite)— Audit result for a GitHub token: validity, type, issuing app, and acting identity
03Stats
B
85 / 100
Downloads
0
Archive size
37.6 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository0/2missing
04Platforms
05Labels