Skip to content

Commit

Permalink
Fix the temporal_severity field of the Vulnerability entity (#249)
Browse files Browse the repository at this point in the history
Fix the Vulnerability entity

> Close advthreat/iroh#2889

This PR sets the `temporal_severity` field as a `CVSSv3Severity`

<a name="qa">[§](#qa)</a> QA
============================

No QA needed

<a name="release-notes">[§](#release-notes)</a> Release Notes
=============================================================

```
internal: Fix a the schema of the Vulnerability entity
```
  • Loading branch information
msprunck committed Sep 5, 2019
1 parent 2af72f8 commit 6c26585
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -8,5 +8,5 @@ cache:
directories:
- $HOME/.m2

jdk:
jdk:
- oraclejdk8
2 changes: 1 addition & 1 deletion src/ctim/examples/vulnerabilities.cljc
Expand Up @@ -32,7 +32,7 @@
:temporal_score 4.2
:environmental_score 4.2
:remediation_level "workaround"
:temporal_severity 4.2
:temporal_severity "medium"
:integrity_requirement "low"
:exploitability_score 0.8
:impact_score 5.9}
Expand Down
2 changes: 1 addition & 1 deletion src/ctim/schemas/vulnerability.cljc
Expand Up @@ -237,7 +237,7 @@
"CVSSv3ExploitCodeMaturity × "
"CVSSv3RemediationLevel × "
"CVSSv3ReportConfidence)"))
(f/entry :temporal_severity Score
(f/entry :temporal_severity v/CVSSv3Severity
:description "temporal severity")

;; requirements
Expand Down

0 comments on commit 6c26585

Please sign in to comment.