Skip to content

Commit

Permalink
rule:feature - Add new fields in Metadata in regex rules (#81)
Browse files Browse the repository at this point in the history
The new fields added are:
CWEs, CVEs, Mitigation, Reference, SafeExample, UnsafeExample.

Signed-off-by: Wilian Gabriel <wilian.silva@zup.com.br>
  • Loading branch information
wiliansilvazup authored Mar 16, 2022
1 parent d8f8648 commit bcfc5ca
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ type Rule interface {

// Metadata holds information for the rule to match a useful advisory
type Metadata struct {
ID string
Name string
Description string
Severity string
Confidence string
ID string
Name string
Description string
Severity string
Confidence string
CWEs []string
CVEs []string
Mitigation string
Reference string
SafeExample string
UnsafeExample string
}

0 comments on commit bcfc5ca

Please sign in to comment.