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

Add base_score property to SourcePackageCve #38

Closed
wants to merge 2 commits into from
Closed
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
22 changes: 17 additions & 5 deletions src/main/java/io/gardenlinux/glvd/db/SourcePackageCve.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public class SourcePackageCve {
@Column(name = "cve_id", nullable = false)
private String cveId;

@Column(name = "base_score", nullable = true)
private float baseScore;

@Column(name = "vector_string", nullable = true)
private String vectorString;

@Column(name = "source_package_name", nullable = false)
private String sourcePackageName;

Expand All @@ -31,8 +37,10 @@ public class SourcePackageCve {
public SourcePackageCve() {
}

public SourcePackageCve(String cveId, @Nonnull String sourcePackageName, @Nonnull String sourcePackageVersion, @Nonnull String gardenlinuxVersion, boolean isVulnerable, @Nonnull String cvePublishedDate) {
public SourcePackageCve(String cveId, float baseScore, String vectorString, String sourcePackageName, String sourcePackageVersion, String gardenlinuxVersion, boolean isVulnerable, String cvePublishedDate) {
this.cveId = cveId;
this.baseScore = baseScore;
this.vectorString = vectorString;
this.sourcePackageName = sourcePackageName;
this.sourcePackageVersion = sourcePackageVersion;
this.gardenlinuxVersion = gardenlinuxVersion;
Expand All @@ -44,17 +52,18 @@ public String getCveId() {
return cveId;
}

@Nonnull
public float getBaseScore() {
return baseScore;
}

public String getSourcePackageName() {
return sourcePackageName;
}

@Nonnull
public String getSourcePackageVersion() {
return sourcePackageVersion;
}

@Nonnull
public String getGardenlinuxVersion() {
return gardenlinuxVersion;
}
Expand All @@ -63,8 +72,11 @@ public boolean isVulnerable() {
return isVulnerable;
}

@Nonnull
public String getCvePublishedDate() {
return cvePublishedDate;
}

public String getVectorString() {
return vectorString;
}
}
Loading