This code queries a repository with 10 different question as outlined in questions.txt
. It gets those responses and summarizes them to assess the security of any given plugin.
Here's how to set it up
- Clone the repository
- Get a github personal access token
- Get a Greptile token
- Put those tokens in a .env file or export them in your terminal
- Change the code to accomodate a repository of your liking (in the future, it will automatically populate)
- Run
python main.py
Note that the repository has to be indexed first before it can be queried, so if your repository hasn't already been indexed, run python index_repository.py
before running python main.py