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

Improve docs for vendor specific private tokens + github fine-grained tokens #46

Closed
1 task
Dominic-Marcelino opened this issue Dec 11, 2022 · 3 comments
Closed
1 task

Comments

@Dominic-Marcelino
Copy link

Describe the feature

I've been happy to see that you've added support for accessing private repos via Token.
In our organisation we use the new fine-graded tokens. Which permissions do we need to set in order to use giget?
Content + Metadata readonly doesn't seem to work (returns a 404 error).

Would be great to get some documentation

Thanks a lot! :)

Additional information

  • Would you be willing to help implement this feature?
@mika-sipila
Copy link

I tested this with full permissions and it seems that I'm getting the same issue regardless. I am using this via Nuxt though, so might have something to do with this... Works immediately when using the classic token.

@pi0 pi0 changed the title [DOCS] Auth token repository permission Improve docs for vendor specific private tokens + github fine ganed tokens Dec 12, 2022
@Dominic-Marcelino
Copy link
Author

Testet this another time and seems like the endpoint does not supports the new Fine-grained personal access tokens (PAT).

I think a solution could be to add a git-mode like tiged/tiged does

@Dominic-Marcelino Dominic-Marcelino changed the title Improve docs for vendor specific private tokens + github fine ganed tokens Improve docs for vendor specific private tokens + github fine-grained tokens Jan 20, 2023
pi0 added a commit that referenced this issue Dec 24, 2023
@pi0
Copy link
Member

pi0 commented Dec 24, 2023

For GitHub with fine-ganed access tokens, you need Contents and Metadata repository permissions. With them as I've tested giget works. Additional docs added to https://github.com/unjs/giget?tab=readme-ov-file#providing-token-for-private-repositories

image

Re git support, it is not a priority but you can track it from #84

@pi0 pi0 closed this as completed Dec 24, 2023
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