Files
pruefwerk/compliance-core/src/traits/scanner.rs
T
Sharang ParnerkarandClaude Opus 4.6 0867e401bc Initial commit: Compliance Scanner Agent
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>
2026-03-02 13:30:17 +01:00

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>;
}