Skip to content

Commit

Permalink
Add base_score property to SourcePackageCve
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed Sep 13, 2024
1 parent 59ecd03 commit 797aada
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 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,9 @@ public class SourcePackageCve {
@Column(name = "cve_id", nullable = false)
private String cveId;

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

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

Expand All @@ -31,8 +34,9 @@ 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 sourcePackageName, String sourcePackageVersion, String gardenlinuxVersion, boolean isVulnerable, String cvePublishedDate) {
this.cveId = cveId;
this.baseScore = baseScore;
this.sourcePackageName = sourcePackageName;
this.sourcePackageVersion = sourcePackageVersion;
this.gardenlinuxVersion = gardenlinuxVersion;
Expand All @@ -44,17 +48,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,7 +68,6 @@ public boolean isVulnerable() {
return isVulnerable;
}

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

0 comments on commit 797aada

Please sign in to comment.