-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from WSE-research/62-security-reports-are-in-d…
…atabase added sql for table
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Modells { | ||
|
||
public class Report { | ||
|
||
/// <summary></summary> | ||
[JsonPropertyName(nameof(AnalysedRepoUuid))] | ||
public string AnalysedRepoUuid { get; set; } = ""; | ||
|
||
/// <summary></summary> | ||
[JsonPropertyName(nameof(AnalysedRepoTag))] | ||
public string? AnalysedRepoTag { get; set; } = null; | ||
|
||
/// <summary></summary> | ||
[JsonPropertyName(nameof(ReportMetrics))] | ||
public object ReportMetrics { get; set; } = new ReportMetric(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Modells { | ||
|
||
public class ReportMetric { | ||
|
||
/// <summary></summary> | ||
[JsonPropertyName(nameof(TotalDirectVulnerabilities))] | ||
public int TotalDirectVulnerabilities { get; set; } = new int(); | ||
|
||
/// <summary></summary> | ||
[JsonPropertyName(nameof(TotalTransitiveVulnerabilities))] | ||
public int TotalTransitiveVulnerabilities { get; set; } = new int(); | ||
|
||
/// <summary></summary> | ||
[JsonPropertyName(nameof(MeanSeverityDirectVulnerabilities))] | ||
public int MeanSeverityDirectVulnerabilities { get; set; } = new int(); | ||
|
||
/// <summary></summary> | ||
[JsonPropertyName(nameof(MeanSeverityTransitiveVulnerabilities))] | ||
public int MeanSeverityTransitiveVulnerabilities { get; set; } = new int(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters