openagentry

REPO · Error

E_GITHUB_AUTH

GitHub token missing or rejected.

Package
@openagentry/adapter-repo-github
Category
repo

— · Resolution

How to recover

Set OA_GITHUB_TOKEN. Classic PATs need `repo` scope; fine-grained PATs need Administration: Read/write + Metadata: Read.

— · The shape

What an instance looks like

throw new AgentryError({
  code: 'E_GITHUB_AUTH',
  phase: 'init',
  message: '…contextual message…',
  context: { /* adapter-specific */ },
  suggestedFix: 'Set OA_GITHUB_TOKEN. Classic PATs need `repo` scope; fine-grained PATs need Administration: Read/write + Metadata: Read.',
  docs: 'https://openagentry.dev/errors/E_GITHUB_AUTH',
});

The context field carries adapter-specific detail (HTTP status, missing env-var names, validation issues). It never contains secret values.


— · See also

Related codes from @openagentry/adapter-repo-github