feat: allow ingesting private repositories via GitHub authentication
Use login with GitHub to allow fetching private repositories
I plan to add this option at some point but not right now because I'd like to improve the functionalities on public repos before. Feel free to draft a PR for that if you have time, even if it's just a PoC
much needed!
+1 for this one
Update: Implementing this option means dealing with user Github Tokens on Gitingest.com. This is a security concern that I take very seriously
So as of right now the feature is top priority and I'm doing everything I can to ship it securely soon. But any help on that matter would be greatly appreciated. Please reach out if you have experience with security: https://github.com/cyclotruc/gitingest?tab=security-ov-file#readme
there's a similar repo having this feature: https://repo2txt.simplebasedomain.com/ maybe you can pick some ide about the token handling.
It can be concerning for companies' private repositories , what do y'all think?
For company private repositories, I recommend running gitingest directly from the command line to ensure sensitive data remains secure.
you need clone this repos
https://pypi.org/project/gitingest/ then run
gitingest /path/to/directory
if you have problem
Error: 'charmap' codec can't encode characters in position 22-24: character maps to <undefined> Aborted!
you can fix like that
https://github.com/cyclotruc/gitingest/pull/72
With https://github.com/cyclotruc/gitingest/pull/69 I added this using PAT.
I use https://github.com/farouqaldori/aiformat for private repo, I like the filter feature to search files to select and keyboard navigation
It miss the token count mayne
I added a PR for adding support for private GitHub repository cloning with OAuth authentication. You can test it.
may I work on this
@nsancheznez Sure but we would need to discuss high level approach and architecture first since it has a lot to do with how gitingest.com is currently hosted
Let me know what you think, you can reach me at @yasbaltrine on discord Thanks a lot!
Hi there! We haven’t seen activity here for 45 days, so I’m marking this issue as stale. If you’d like to keep it open, please leave a comment within 10 days. Thanks!
Hi there! We haven’t heard anything for 10 days, so I’m closing this issue. Feel free to reopen if you’d like to continue the discussion. Thanks!