# AI Vulnerability Scanner This CLI tool integrates AI-powered vulnerability detection into CI/CD pipelines by analyzing code changes for potential vulnerabilities using OpenAI's GPT model. It helps developers identify and fix security issues before deploying to production, improving software security practices. ## Features - Analyze individual files or entire directories for security vulnerabilities. - Generate detailed vulnerability reports. - Easy integration into CI/CD pipelines. ## Installation Install the required Python package: ``` pip install openai ``` ## Usage Run the tool using the following command: ``` python ai_vulnerability_scanner.py --path [--output ] ``` ### Arguments - `--path`: Path to the file or directory to analyze. - `--output`: (Optional) Path to save the vulnerability report in JSON format. ### Example Analyze a single file: ``` python ai_vulnerability_scanner.py --path test_file.py ``` Analyze a directory and save the report: ``` python ai_vulnerability_scanner.py --path ./src --output report.json ``` ## Testing Run the tests using `pytest`: ``` pytest test_ai_vulnerability_scanner.py ``` ## License This project is licensed under the MIT License.