Autonomous security and compliance scanning agent for git repositories. Features: SAST (Semgrep), SBOM (Syft), CVE monitoring (OSV.dev/NVD), GDPR/OAuth pattern detection, LLM triage, issue creation (GitHub/GitLab/Jira), PR reviews, and Dioxus fullstack dashboard. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
446 B
Rust
18 lines
446 B
Rust
use std::path::Path;
|
|
|
|
use crate::error::CoreError;
|
|
use crate::models::{Finding, SbomEntry, ScanType};
|
|
|
|
#[derive(Debug, Default)]
|
|
pub struct ScanOutput {
|
|
pub findings: Vec<Finding>,
|
|
pub sbom_entries: Vec<SbomEntry>,
|
|
}
|
|
|
|
#[allow(async_fn_in_trait)]
|
|
pub trait Scanner: Send + Sync {
|
|
fn name(&self) -> &str;
|
|
fn scan_type(&self) -> ScanType;
|
|
async fn scan(&self, repo_path: &Path, repo_id: &str) -> Result<ScanOutput, CoreError>;
|
|
}
|