Automated system for cloning repositories, recovering deleted files, and scanning for secrets with Telegram notifications.
-
Comprehensive Scanning:
- Clone all organization repositories
- Recover deleted files from Git history
- Extract dangling Git objects
- Unpack Git pack files
- Scan with TruffleHog (verified secrets only)
-
Smart Automation:
- ⏱️ Timeout protection for long operations
- 🔄 Parallel processing (5 repos concurrently)
- 🧹 Automatic cleanup after processing
- 📊 Progress tracking and ETA estimates
-
Notifications:
- 🔔 Instant Telegram alerts for found secrets
- 📋 Final summary report
- ✅ Completion notification
- GitHub CLI:
brew install ghor install guide - TruffleHog:
pip install trufflehog - Git: Pre-installed on most systems
- Bash: v4.0+ (macOS users:
brew install bash)
# 1. Download scripts
curl -O https://example.com/clone_repos.sh
curl -O https://example.com/restore_deleted_files.sh
curl -O https://example.com/unpack_pack_files.sh
curl -O https://example.com/extract_dangling_blobs.sh
curl -O https://example.com/main_automation_final.sh
# 2. Make executable
chmod +x *.sh
# 3. Authenticate with GitHub
gh auth login