Skip to content

Commit

Permalink
add rule_id to vulnerability object
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Turner <225599+anthturner@users.noreply.github.com>
  • Loading branch information
anthturner committed Jan 24, 2022
1 parent 5fc8553 commit ea805c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/entities/vulnerability/vulnerability.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type Vulnerability struct {

// RuleID is the rule id used to generate Vulnerability.
// This field can bem empty if Vulnerability was not generated from horusec-engine.
RuleID string `json:"-" gorm:"-" swaggerignore:"true"`
RuleID string `json:"rule_id" gorm:"-"`

// VulnHash is the vulnerability hash
VulnHash string `json:"vulnHash" gorm:"Column:vuln_hash" example:"8bcac7908eb950419537b91e19adc83ce2c9cbfdacf4f81157fdadfec11f7017"`
Expand Down

0 comments on commit ea805c1

Please sign in to comment.