Skip to content

cristibtz/SecretFinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository-Secret-Scanner-using-LLMs

Check for hardcoded secrets in a Git repository using LLMs

Setup

  1. Clone the repository:
    git clone https://github.com/cristibtz/SecretFinder.git
    cd SecretFinder
  2. Create and activate a virtual environment:
    python3 -m venv venv
    source venv/bin/activate
  3. Install the required packages:
    pip install -r requirements.txt
    pip install -e .
  4. Set up your OpenAI API key in a .env file:
    OPENAI_API_KEY=your_openai_api_key_here
    

Usage

Run the tool with a Git repository URL or a local path:

secret-finder --repo /home/alex/my-repo
# or
secret-finder --repo https://github.com/cristibtz/SecretFinder.git
# or
secret-finder --repo git@github.com:cristibtz/SecretFinder.git
# or
secret-finder --repo ./ --n 20 --output file.json

About

Check for hardcoded secrets in a Git repository using LLMs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages