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

Github private repo explanation #516

Open
1 task
stijns96 opened this issue Nov 29, 2024 · 3 comments
Open
1 task

Github private repo explanation #516

stijns96 opened this issue Nov 29, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@stijns96
Copy link

Describe the change

I have to get some content of my private Github repository. I know you can add a token, but it would be nice to explain how to do this.

I struggled a little bit on how to get the token and what kind of scopes it needs in order to make it work with Unstorage.

URLs

https://unstorage.unjs.io/drivers/github

Additional information

  • Would you be willing to help?
@stijns96 stijns96 added the documentation Improvements or additions to documentation label Nov 29, 2024
@pi0
Copy link
Member

pi0 commented Nov 29, 2024

Would you like to make a PR to the docs sharing your experience? 🙏🏼

@stijns96
Copy link
Author

stijns96 commented Nov 29, 2024

Hi @pi0,

I would, but I'm not really sure if I did it the right way... Here some more context:

I'm working on a docs for the company I'm working for that is build with Nuxt / Nuxt Content. Now I used a personal access token, but that feels a bit weird to do. I think that I have to go for a Github App, but haven't worked with that yet.

Could you maybe direct me a little bit to some best practices? Then I can figure out if that is working and then create a PR.

Since you're also working on Nuxt (I recognize your name), you probably know a bit more on how to do this then I do at this point... Haha

@pi0
Copy link
Member

pi0 commented Nov 29, 2024

PAT or better fine gained personal tokens are good (we don't support github app). Feel free to start a draft I can help to finish it.

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

No branches or pull requests

2 participants