Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-kali-team committed Dec 7, 2023
1 parent c026b73 commit a7d3ca8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ on:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
schedule:
- cron: '3 3 3 * *'
jobs:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: rustdoc
on:
push:
branches:
- main
tags:
- "v*"

env:
CARGO_INCREMENTAL: 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
- '!/docs/**'
- "!/LICENSE-*"
push:
branches:
- main
tags:
- "v*"
paths:
- '**'
- '!/*.md'
Expand Down
4 changes: 2 additions & 2 deletions helper/src/import_cve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down
1 change: 1 addition & 0 deletions nvd-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down

0 comments on commit a7d3ca8

Please sign in to comment.