ReSearchITEng / github-active-repo-finder

A script that helps to identify updated forks (active forks) of a specified reference repo in github. It's mainly calling github's compare branch api for all branches in all forks against those in the reference repository given as input.
https://github.com/ReSearchITEng/github-active-repo-finder
The Unlicense
3 stars 1 forks source link

Repeatedly asked "Enter host password for user 'GITHUBTOKEN':" #2

Open PatAtAlludo opened 1 year ago

PatAtAlludo commented 1 year ago

Hi, I'm using this far more often and have noticed something strange. Here is the obfuscated output ./active_forks_finder.sh foo/cracking going to use following inputs: AUTH=GITHUBTOKEN reference_owner=foo reference_repo=cracking FIND_UPDATED_AFTER_DATE=2018-01-01T00:00:00Z FIND_UPDATED_BEFORE_DATE=2200-01-01T00:00:00Z init_default_compare_branch=master PATH_FILE_PREFIX=./ get_forks start - searching recursivelly to build a list of all forks of the reference repo. foo/cracking - page 1 Enter host password for user 'GITHUBTOKEN': foo/cracking - page 2 Enter host password for user 'GITHUBTOKEN': foo/cracking - page 3 Enter host password for user 'GITHUBTOKEN': foo/cracking - page 4 Enter host password for user 'GITHUBTOKEN': bar/cracking - page 1 Enter host password for user 'GITHUBTOKEN': poo/desktop_crack - page 1 Enter host password for user 'GITHUBTOKEN': flash/cracking - page 1 Enter host password for user 'GITHUBTOKEN': uakbr/crackedDesktop - page 1 Enter host password for user 'GITHUBTOKEN': poo2/cracking - page 1 Enter host password for user 'GITHUBTOKEN': --- SNIP ---- Enter host password for user 'GITHUBTOKEN': void/cracking - page 1 Enter host password for user 'GITHUBTOKEN': repositories from the forks and forks of forks recursivelly. Total number of repos: 651 Recursive repos processed: 22 all the repos (including forks of forks) are under file: ./foo-cracking-forks.json, use jq to process get_forks() end ./active_forks_finder.sh - ended, bye

My token is password less and I'd rather prefer that I could leave this running and not have to babysit it. I've looked through the code and haven't fond anything. Thanks! Pat

PatAtAlludo commented 1 year ago

Ideally I'd like to pass in a file with repo owner/name pairs and have this just go to town without having to hit enter. When the prompt "Enter host password for user 'GITHUBTOKEN':" appears I don't enter a password, just hit enter.

ReSearchITEng commented 1 year ago

Hi @PatAtAlludo, I am not using it for long, hence hardly maintaining it. Did you try using ssh keys? Maybe that will stop prompting for the auth. If you have any PR which would improve the situation, I would happily look into merging it.

PatAtAlludo commented 6 months ago

I've fixed it by putting a weight on the enter key ;)