Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reduce default importers to only those used in V1 #1084

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 0 additions & 87 deletions server/src/sample_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,94 +181,7 @@ pub async fn sample_data(db: trustify_common::db::Database) -> anyhow::Result<()
)
.await?;

add(
&importer,
"redhat-csaf-vex-2024",
ImporterConfiguration::Csaf(CsafImporter {
common: CommonImporter {
disabled: true,
period: Duration::from_secs(300),
description: Some("Red Hat VEX files from 2024".into()),
labels: Default::default(),
},
source: "redhat.com".to_string(),
v3_signatures: true,
only_patterns: vec!["^cve-2024-".into()],
fetch_retries: Some(50),
ignore_missing: false,
}),
)
.await?;

add_cwe(&importer, "cwe", "Common Weakness Enumeration").await?;

add_cve(&importer, "cve", None, "CVE List V5").await?;
add_cve(
&importer,
"cve-from-2024",
Some(2024),
"CVE List V5 (starting 2024)",
)
.await?;

add_clearly_defined_curations(
&importer,
"clearly-defined-curations",
"Community-curated ClearlyDefined licenses",
)
.await?;

add_clearly_defined(&importer, "clearly-defined", "ClearlyDefined Definitions").await?;

add_osv(
&importer,
"osv-pypa",
"https://github.com/pypa/advisory-database",
Some("vulns"),
None,
"Python Packaging Advisory Database",
)
.await?;

add_osv(
&importer,
"osv-psf",
"https://github.com/psf/advisory-database",
Some("advisories"),
None,
"Python Software Foundation Advisory Database",
)
.await?;

add_osv(
&importer,
"osv-r",
"https://github.com/RConsortium/r-advisory-database",
Some("vulns"),
None,
"RConsortium Advisory Database",
)
.await?;

add_osv(
&importer,
"osv-oss-fuzz",
"https://github.com/google/oss-fuzz-vulns",
Some("vulns"),
None,
"OSS-Fuzz vulnerabilities",
)
.await?;

add_osv(
&importer,
"osv-rustsec",
"https://github.com/rustsec/advisory-db",
Some("crates"),
Some("osv"),
"RustSec Advisory Database",
)
.await?;

Ok(())
}
Loading