secure-scan-js
Version:
A JavaScript implementation of Yelp's detect-secrets tool - no Python required
29 lines (28 loc) • 775 B
TypeScript
interface ScanResults {
secrets: Array<{
type: string;
secret: string;
filename: string;
line_number?: number;
line?: string;
}>;
missed_secrets: any[];
}
interface ScanOptions {
excludeDirs?: string[];
excludeFiles?: string[];
enrichWithGitInfo?: boolean;
}
interface EnhancedScanResults extends ScanResults {
summary: {
total_files_scanned: number;
total_secrets_found: number;
unique_secret_types: number;
secrets_by_type: Record<string, number>;
};
}
/**
* Enhanced scanner that uses both the Python detector and directory scanning
*/
export declare function enhancedScan(directory: string, options?: Partial<ScanOptions>): Promise<EnhancedScanResults>;
export {};