Skip to content

Commit

Permalink
feat(report): support Amazon OVAL scanning (future-architect#824)
Browse files Browse the repository at this point in the history
* feat(report): support Amazon OVAL scanning

* add distroAdvisories

* see goval/master
  • Loading branch information
kotakanbe authored Jun 10, 2019
1 parent 40492ee commit 269095d
Show file tree
Hide file tree
Showing 10 changed files with 244 additions and 87 deletions.
109 changes: 60 additions & 49 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@
[[constraint]]
branch = "master"
name = "golang.org/x/xerrors"


12 changes: 11 additions & 1 deletion models/cvecontents.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ func (v CveContents) SourceLinks(lang, myFamily, cveID string) (values []CveCont
order := CveContentTypes{Nvd, NvdXML, NewCveContentType(myFamily)}
for _, ctype := range order {
if cont, found := v[ctype]; found {
if cont.SourceLink == "" {
continue
}
values = append(values, CveContentStr{ctype, cont.SourceLink})
}
}
Expand Down Expand Up @@ -233,6 +236,8 @@ func NewCveContentType(name string) CveContentType {
return Microsoft
case "wordpress":
return WPVulnDB
case "amazon":
return Amazon
default:
return Unknown
}
Expand Down Expand Up @@ -266,6 +271,9 @@ const (
// Oracle is Oracle Linux
Oracle CveContentType = "oracle"

// Amazon is Amazon Linux
Amazon CveContentType = "amazon"

// SUSE is SUSE Linux
SUSE CveContentType = "suse"

Expand All @@ -288,9 +296,11 @@ var AllCveContetTypes = CveContentTypes{
NvdXML,
Jvn,
RedHat,
RedHatAPI,
Debian,
Ubuntu,
RedHatAPI,
Amazon,
SUSE,
DebianSecurityTracker,
WPVulnDB,
}
Expand Down
Loading

0 comments on commit 269095d

Please sign in to comment.