supamend
Version:
Pluggable DevSecOps Security Scanner with 10+ scanners and multiple reporting channels
61 lines • 1.48 kB
TypeScript
import { ScanOptions, ScanResult } from '../types';
export default class SupaMend {
private pluginManager;
private gitManager;
private logger;
private config?;
constructor();
/**
* Load configuration from file
*/
loadConfig(configPath?: string): Promise<void>;
/**
* Run a security scan on a repository
*/
scan(options: ScanOptions): Promise<ScanResult[]>;
/**
* Load configuration with retry
*/
private loadConfigWithRetry;
/**
* Clone repository with retry
*/
private cloneRepositoryWithRetry;
/**
* Run scanner with error recovery and timeout
*/
private runScannerWithRecovery;
/**
* Run reporter with error recovery
*/
private runReporterWithRecovery;
/**
* Cleanup with error recovery
*/
private cleanupWithRecovery;
/**
* Get enabled scanners based on configuration
*/
private getEnabledScanners;
/**
* Get enabled reporters based on configuration
*/
private getEnabledReporters;
/**
* Get scanner configuration from global config
*/
private getScannerConfig;
/**
* Get reporter configuration from global config
*/
private getReporterConfig;
/**
* List available scanners
*/
listScanners(): Promise<string[]>;
/**
* List available reporters
*/
listReporters(): Promise<string[]>;
}
//# sourceMappingURL=supamend.d.ts.map