REPO · Error
E_GITHUB_AUTH
GitHub token missing or rejected.
— · 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
-
E_GITHUB_NOT_FOUNDRepository not found. -
E_GITHUB_PERMISSIONToken lacks permission for the operation. -
E_GITHUB_INVALIDGitHub rejected the input shape. -
E_GITHUB_RATE_LIMITGitHub rate limit reached. -
E_GITHUB_NETWORKNetwork failure reaching GitHub. -
E_GITHUB_UPSTREAMGitHub returned a non-2xx response. -
E_GITHUB_SCHEMAInput failed Zod validation.