-
Notifications
You must be signed in to change notification settings - Fork 148
/
vulnsrc.go
69 lines (63 loc) · 2.17 KB
/
vulnsrc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package vulnsrc
import (
"github.com/aquasecurity/trivy-db/pkg/types"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/alma"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/alpine"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/amazon"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/bitnami"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/bundler"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/chainguard"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/composer"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/debian"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/ghsa"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/glad"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/govulndb"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/k8svulndb"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/mariner"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/node"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/nvd"
oracleoval "github.com/aquasecurity/trivy-db/pkg/vulnsrc/oracle-oval"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/photon"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/redhat"
redhatoval "github.com/aquasecurity/trivy-db/pkg/vulnsrc/redhat-oval"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/rocky"
susecvrf "github.com/aquasecurity/trivy-db/pkg/vulnsrc/suse-cvrf"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/ubuntu"
"github.com/aquasecurity/trivy-db/pkg/vulnsrc/wolfi"
)
type VulnSrc interface {
Name() types.SourceID
Update(dir string) (err error)
}
var (
// All holds all data sources
All = []VulnSrc{
// NVD
nvd.NewVulnSrc(),
// OS packages
alma.NewVulnSrc(),
alpine.NewVulnSrc(),
redhat.NewVulnSrc(),
redhatoval.NewVulnSrc(),
debian.NewVulnSrc(),
ubuntu.NewVulnSrc(),
amazon.NewVulnSrc(),
oracleoval.NewVulnSrc(),
rocky.NewVulnSrc(),
susecvrf.NewVulnSrc(susecvrf.SUSEEnterpriseLinux),
susecvrf.NewVulnSrc(susecvrf.OpenSUSE),
photon.NewVulnSrc(),
mariner.NewVulnSrc(),
wolfi.NewVulnSrc(),
chainguard.NewVulnSrc(),
bitnami.NewVulnSrc(),
k8svulndb.NewVulnSrc(),
// Language-specific packages
bundler.NewVulnSrc(),
composer.NewVulnSrc(),
node.NewVulnSrc(),
ghsa.NewVulnSrc(),
glad.NewVulnSrc(),
govulndb.NewVulnSrc(), // For Go stdlib packages
}
)