diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index f369695..805d829 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -4,10 +4,6 @@ on: paths: - '**/Cargo.toml' - '**/Cargo.lock' - push: - paths: - - '**/Cargo.toml' - - '**/Cargo.lock' schedule: - cron: '3 3 3 * *' jobs: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 9b0c03f..2c231cc 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -12,8 +12,6 @@ name: "CodeQL" on: - push: - branches: [ "main" ] pull_request: # The branches below must be a subset of the branches above branches: [ "main" ] diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index bada52b..bd02cec 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -1,8 +1,8 @@ name: rustdoc on: push: - branches: - - main + tags: + - "v*" env: CARGO_INCREMENTAL: 0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 40dcae6..bbf5018 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,8 +7,8 @@ on: - '!/docs/**' - "!/LICENSE-*" push: - branches: - - main + tags: + - "v*" paths: - '**' - '!/*.md' diff --git a/helper/src/import_cve.rs b/helper/src/import_cve.rs index 077e3f3..909856b 100644 --- a/helper/src/import_cve.rs +++ b/helper/src/import_cve.rs @@ -114,7 +114,7 @@ pub fn import_from_archive( updated_at: cve_item.last_modified_date, references: serde_json::json!(cve_item.cve.references.reference_data), description: serde_json::json!(cve_item.cve.description.description_data), - severity: cve_item.impact.severity(), + severity: cve_item.impact.severity().to_lowercase(), metrics: serde_json::json!(cve_item.impact), assigner: cve_item.cve.meta.assigner, configurations: serde_json::json!(cve_item.configurations.nodes), @@ -157,7 +157,7 @@ pub fn import_from_api( updated_at: cve_item.last_modified, references: serde_json::json!(cve_item.references), description: serde_json::json!(cve_item.descriptions), - severity: cve_item.metrics.severity(), + severity: cve_item.metrics.severity().to_lowercase(), metrics: serde_json::json!(cve_item.metrics), assigner: cve_item.source_identifier, configurations: serde_json::json!(cve_item.configurations), diff --git a/nvd-server/Cargo.toml b/nvd-server/Cargo.toml index ab4916b..9bc807c 100644 --- a/nvd-server/Cargo.toml +++ b/nvd-server/Cargo.toml @@ -11,6 +11,7 @@ openssl-sys = "0.9" openssl = { version = "0.10", features = ["vendored"] } actix-files = "0.6.2" actix-cors = "0.6.4" +mysqlclient-sys = "0.2.5" diesel = { version = "2.1.4", features = ["r2d2", "mysql", "chrono", "uuid", "serde_json"] } serde = { version = "1", features = ["derive"] } serde_json = { version = "1", features = ["preserve_order"] }