Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private github repositories? #13

Open
natdm opened this issue Apr 5, 2023 · 6 comments
Open

Private github repositories? #13

natdm opened this issue Apr 5, 2023 · 6 comments
Assignees

Comments

@natdm
Copy link

natdm commented Apr 5, 2023

It doesn't look like this code is set to look at private github repos, no spot for an auth token or parsing of an environmental variable for it. Is there a way to do this?

@daiyam
Copy link
Member

daiyam commented Apr 5, 2023

Yes, the token would need to be given (https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28)
But where to stock it?
I don't think in settings.json would be good choice...
Maybe in an env variable or in a file?? "token": "env:MY_TOKEN" or "token": "file:~/mytoken.txt"?

@natdm
Copy link
Author

natdm commented Apr 5, 2023

Agreed, I've got them in env vars now, so a setting to point to an env var would be a good idea. That's probably a pretty common usecase.

@GitMensch
Copy link
Contributor

@daiyam Any idea about an implementation as outlined?

@daiyam
Copy link
Member

daiyam commented Nov 15, 2023

We will need to add a new source type (GitHub) to have something like

"vsix.sources": {
    "mgh": {
        "type": "github",
        "repository": "<username>",
        "token": "env:MY_TOKEN",
    },
},
"vsix.extensions": [
        "mgh:<project>",
    ],

@GitMensch
Copy link
Contributor

Sounds good, I'd suggest to go with vscode's ${env:MY_TOKEN} and support ${env:name} also in the repository, serviceUrl and path properties

@daiyam daiyam self-assigned this Nov 12, 2024
daiyam added a commit that referenced this issue Nov 12, 2024
@daiyam
Copy link
Member

daiyam commented Nov 12, 2024

Hi, it's late but the newest version (0.7.0) should support private repositories. Sorry for the long wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants