Post-MVP: narrow GitHub sign-in to identity-only (drop the broad `repo` scope)

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github, javascript

Direzione di ricerca

Start with GITHUB_SCOPES in src/oauth/provider.js:33 and the GitHub App access design in docs/superpowers/specs/2026-11-17-github-app-access-design.md. Check whether @octokit/auth-app covers the remaining repository reads, writes, and creation before assessing the scope. Done means sign-in requests only read:user user:email while repository operations use the existing GitHub App.

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

Descrizione

enhancement parked

What

GitHub sign-in asks for repo read:user user:email (GITHUB_SCOPES in src/oauth/provider.js:33). On GitHub's consent screen, repo reads as "Repositories: Public and private", so every new user who signs in with GitHub sees a broad request.

#110 (GitHub App, #327) already moved the credential a manager lends onto a repository-scoped App. It deliberately left the sign-in scope alone, because signing in with GitHub still reaches the person's own repository and creating a repository still needs repo.

Proposal

Make sign-in identity-only (read:user user:email) and move repository reads, writes and creation onto the GitHub App, so the consent screen no longer asks for access to all repositories.

Why it is low priority

Not material to the MVP experiment. Google sign-in and the App-based lend path already cover the manager-trust story, and the consent screen only reaches what the signing-in account can already reach. Revisit if a manager or buyer objects to the screen.

Existing open source first

Nothing to build from scratch: GitHub Apps and user-to-server tokens (via the existing App) are the supported route, and the spec for #110 (docs/superpowers/specs/2026-11-17-github-app-access-design.md) already sketches the split. Check whether @octokit/auth-app covers the remaining pieces before hand-rolling any of it.

Lingua principale
JavaScript
Stelle
1
Fork
2
Merge medio
1g 19h
PR unite (30g)
62

Preparare l'ambiente

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 StatsLateral/teamctx

Tutte le issue di StatsLateral/teamctx

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.