Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

GitHub tools `list_user_installations` and `list_app_installations` fail with app installation auth

Aperta
#110 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github, typescript

Direzione di ricerca

Inizia tracciando authenticateApp e le implementazioni di list_user_installations e list_app_installations, quindi riproduci entrambi i fallimenti con l’autenticazione dell’installazione di GitHub App. Confronta il token richiesto da ciascun endpoint con il token fornito dagli strumenti; il lavoro è completato quando è stata implementata una gestione concordata per l’autenticazione incompatibile ed entrambi i casi di errore sono coperti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

The list_user_installations and list_app_installations tools fail when using GitHub App installation authentication (the default auth method in scout-agent).

Errors

list_user_installations:

Resource not accessible by integration - https://docs.github.com/rest/apps/installations#list-app-installations-accessible-to-the-user-access-token

list_app_installations:

A JSON web token could not be decoded - https://docs.github.com/rest

Root Cause

These two endpoints require different authentication than what authenticateApp() provides:

Tool Endpoint Required Auth What we provide
list_user_installations GET /user/installations User access token (OAuth/PAT) Installation token
list_app_installations GET /app/installations App JWT (signed with private key) Installation token

When withContext({ appAuth }) is used, the authenticateApp() function exchanges the app JWT for an installation access token. This works for most repository operations, but these two endpoints specifically need different token types.

Suggested Solutions

  1. Remove these tools from the default toolset when using app auth, since they're not compatible
  2. Add a separate auth path for list_app_installations that uses the raw JWT instead of exchanging it for an installation token
  3. Document the limitation so users know these tools require user token auth
  4. Throw a more helpful error when these tools are called with incompatible auth (e.g., "This tool requires a user access token and is not compatible with GitHub App authentication")

Reproduction

  1. Set up scout-agent with GitHub App auth
  2. Call either github_list_user_installations or github_list_app_installations
  3. Observe the errors above
Lingua principale
TypeScript
Stelle
165
Fork
20
Merge medio
1m
PR unite (30g)
7

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coder/blink

Tutte le issue di coder/blink

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.