Skip to main content

Module remote

Module remote 

Source
Expand description

Remote repository scanning module

This module provides functionality to scan remote Git repositories for security vulnerabilities in Claude Code configurations.

§Features

  • Clone remote repositories with security measures (shallow clone, hooks disabled)
  • Support for GitHub authentication (token-based)
  • Parse awesome-claude-code repository list
  • Batch scanning with parallel clones

§Security Measures

  • All clones are shallow (depth=1) to minimize attack surface
  • Git hooks are disabled during clone to prevent code execution
  • Temporary directories are automatically cleaned up
  • Authentication tokens are not logged or exposed

Re-exports§

pub use clone::ClonedRepo;
pub use clone::GitCloner;
pub use clone::parse_github_url;
pub use error::RemoteError;

Modules§

clone
error

Constants§

AWESOME_CLAUDE_CODE_URL
awesome-claude-code repository URL
DEFAULT_CLONE_TIMEOUT_SECS
Default clone timeout in seconds
DEFAULT_PARALLEL_CLONES
Default maximum parallel clones
DEFAULT_RATE_LIMIT_RETRIES
Default rate limit retry max attempts