-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
clirelated to cli/ dirrelated to cli/ dirfeatnew feature (which has been agreed to/accepted)new feature (which has been agreed to/accepted)
Milestone
Description
Currently there is no way to fetch remote modules from private GitHub repositories without exposing your access token.
For example you could do the following currently:
import * as foo from "https://$TOKEN@raw.githubusercontent.com/private_org/private_repo/master/foo.ts";But you could easily "leak" your access token if you then checked that code in and pushed it to a public repo.
GitHub (and I assume other services) all the token to be passed as an authorisation header:
Authorization: token $TOKENIf this was somehow passed on the command line, it would become easier to secure.
itspa1, rainder, cfilipov, aapoalas, newtack and 17 more
Metadata
Metadata
Assignees
Labels
clirelated to cli/ dirrelated to cli/ dirfeatnew feature (which has been agreed to/accepted)new feature (which has been agreed to/accepted)