This directory contains GitHub Actions workflows for the AI Email Categorizer Backend.
A comprehensive security and performance analysis workflow that:
-
Security Scanning:
- Dependency vulnerability checks using Safety
- Static security analysis with Bandit
- Additional security patterns with Semgrep
-
Performance Analysis:
- API response time monitoring
- Log-based performance tracking
- Bottleneck identification
-
Integration Testing:
- CrashLens core functionality tests
- Integration test execution
- API usage pattern analysis
-
Automated Reporting:
- Generates comprehensive analysis reports
- Uploads artifacts for detailed review
- Comments on pull requests with results
- Provides workflow summaries
- Push: Runs on pushes to
mainandrajbranches - Pull Request: Runs on PRs targeting
main - Scheduled: Daily at 6 AM UTC
- Manual: Can be triggered manually with scan type options:
full- Complete analysis (default)logs-only- Log analysis onlysecurity- Security-focused scan
The workflow generates and uploads:
- Security scan reports (JSON format)
- Performance analysis results
- Log analysis summaries
- Comprehensive markdown report
The workflow uses:
crashlens_config.yaml- CrashLens configurationrequirements.txt- Main dependenciescrashlens_requirements.txt- CrashLens-specific dependencies
The workflows run automatically based on their triggers. For manual execution:
- Go to the Actions tab in GitHub
- Select the CrashLens Analysis workflow
- Click Run workflow
- Choose scan type and branch
- Review results in the workflow summary and artifacts