Skip to content

Repository files navigation

🔍 Repository Secret Scanner Automation

GitHub GitHub GitHub

Automated system for cloning repositories, recovering deleted files, and scanning for secrets with Telegram notifications.

🌟 Features

  • 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

🛠️ Setup

Prerequisites

  1. GitHub CLI: brew install gh or install guide
  2. TruffleHog: pip install trufflehog
  3. Git: Pre-installed on most systems
  4. Bash: v4.0+ (macOS users: brew install bash)

Installation

# 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

About

Automated system for cloning repositories, recovering deleted files, and scanning for secrets with Telegram notifications.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages