Credentials for git clone and push
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- git, typescript
Direzione di ricerca
Start at Repo.cloneUrls and the forge repository abstractions, then trace how GitHub, GitLab, Bitbucket, and Cloudflare Artifacts obtain and cache tokens. The proposed forge.repos.gitCredentials(repo) entry point should return the clone URL, provider-specific username, token, and expiration, while reusing existing token caches. Verify each provider against its authentication requirements and confirm that browser behavior remains unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Repo.cloneUrls gives the URL to clone, but not how to authenticate with it. Each forge wants a different username next to the token:
- GitHub:
x-access-tokenwith an app installation token - GitLab:
oauth2with an OAuth token - Bitbucket:
x-token-authwith an access token - Cloudflare Artifacts: a separate repo token that you mint first
With app auth it's also the installation token, not the app credentials, so the caller has to know to call installations.token() and when it expires.
const { url, username, password, expiresAt } = await forge.repos.gitCredentials(repo)
It could reuse the token the provider already has, and the installation token cache for app auth. It wouldn't run git itself, so nothing changes for browsers.
I am unsure about this one, because this is a git-transport thingy. In a few years, who knows if we will be using git
- Lingua principale
- TypeScript
- Stelle
- 123
- Fork
- 7
- Merge medio
- 9h 15m
- PR unite (30g)
- 188
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di danielroe/forges
-
enhancement
Difficoltà 4/5 1-2 giorni Idoneità per principianti 56/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
danielroe/forges#244 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement needs discussion
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
I maintainer di solito rispondono entro 1 giorno
-
bug help wanted
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di danielroe/forges
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
vekexasia/pi-extensible-workflows#374 ·
I maintainer di solito rispondono entro 2 giorni
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
help wanted linux
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
GiuseppeBellamacina/downtime#19 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
scaleway/ultraviolet#7089 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Get-Concord-AI/concord-mcp#296 ·
I maintainer di solito rispondono entro 1 giorno