Due to the Gitlab advanced search rate limiter, I was unable to use the CLI tools written by Phillip Johnsen. So I wrote my own in NodeJS using the GitLab API NodeJS library GitBeaker by Justin Dalrymple
This project is quite straightforward with only to settings to fill in the .env file (a read only personnal auth token) and the string to search. Then you can start searching by running the search
script
Notice: due to the really low rate limit (10 request per minute) you may wait for quite a long time. Based on my own experiment, about 700 seconds to search across 100 projects
git clone [email protected]:ldbglobe/gitlab-finder.git
cd gitlab-finder
yarn
cp .env.sample .env
Edit the .env
to put your own personnal authtoken, search string and file extension (optionnal) before executing the script
yarn search