1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! 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
pub use ;
pub use RemoteError;
/// Default clone timeout in seconds
pub const DEFAULT_CLONE_TIMEOUT_SECS: u64 = 300;
/// Default maximum parallel clones
pub const DEFAULT_PARALLEL_CLONES: usize = 4;
/// Default rate limit retry max attempts
pub const DEFAULT_RATE_LIMIT_RETRIES: u32 = 5;
/// awesome-claude-code repository URL
pub const AWESOME_CLAUDE_CODE_URL: &str = "https://github.com/anthropics/awesome-claude-code";