gitingest icon indicating copy to clipboard operation
gitingest copied to clipboard

feat: allow ingesting private repositories via GitHub authentication

Open Explosion-Scratch opened this issue 1 year ago • 12 comments

Use login with GitHub to allow fetching private repositories

Explosion-Scratch avatar Dec 05 '24 19:12 Explosion-Scratch

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

cyclotruc avatar Dec 06 '24 09:12 cyclotruc

much needed!

VladStoyanovADP avatar Dec 07 '24 02:12 VladStoyanovADP

+1 for this one

moebiussurfing avatar Dec 13 '24 18:12 moebiussurfing

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

cyclotruc avatar Dec 13 '24 20:12 cyclotruc

there's a similar repo having this feature: https://repo2txt.simplebasedomain.com/ maybe you can pick some ide about the token handling.

moebiussurfing avatar Dec 16 '24 19:12 moebiussurfing

It can be concerning for companies' private repositories , what do y'all think?

Sarahkhan20 avatar Dec 24 '24 20:12 Sarahkhan20

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

phamhung075 avatar Dec 27 '24 10:12 phamhung075

With https://github.com/cyclotruc/gitingest/pull/69 I added this using PAT.

cevatkerim avatar Dec 29 '24 09:12 cevatkerim

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

giraudvalentin avatar Mar 04 '25 14:03 giraudvalentin

I added a PR for adding support for private GitHub repository cloning with OAuth authentication. You can test it.

JulsdL avatar Mar 06 '25 15:03 JulsdL

may I work on this

nsancheznez avatar Jun 26 '25 13:06 nsancheznez

@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!

cyclotruc avatar Jun 26 '25 17:06 cyclotruc

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!

github-actions[bot] avatar Aug 11 '25 06:08 github-actions[bot]

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!

github-actions[bot] avatar Aug 22 '25 06:08 github-actions[bot]