Skip to content

Commit

Permalink
use v6 vuln status enum
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman committed Jan 8, 2025
1 parent d2e9b0d commit 103ec5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion grype/db/v6/affected_package_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ func testDistro1AffectedPackage2Handle() *AffectedPackageHandle {
},
Vulnerability: &VulnerabilityHandle{
Name: "CVE-2023-1234",
Status: string(VulnerabilityRejected),
Status: VulnerabilityRejected,
PublishedDate: &now,
ModifiedDate: &later,
Provider: &Provider{
Expand Down
2 changes: 1 addition & 1 deletion grype/db/v6/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ type VulnerabilityHandle struct {
Name string `gorm:"column:name;not null;index"`

// Status conveys the actionability of the current record
Status string `gorm:"column:status;not null;index"`
Status VulnerabilityStatus `gorm:"column:status;not null;index"`

// PublishedDate is the date the vulnerability record was first published
PublishedDate *time.Time `gorm:"column:published_date;index"`
Expand Down

0 comments on commit 103ec5d

Please sign in to comment.