-
Notifications
You must be signed in to change notification settings - Fork 342
/
constants.go
103 lines (92 loc) · 3.01 KB
/
constants.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package models
type Ecosystem string
const (
EcosystemGo Ecosystem = "Go"
EcosystemNPM Ecosystem = "npm"
EcosystemOSSFuzz Ecosystem = "OSS-Fuzz"
EcosystemPyPI Ecosystem = "PyPI"
EcosystemRubyGems Ecosystem = "RubyGems"
EcosystemCratesIO Ecosystem = "crates.io"
EcosystemPackagist Ecosystem = "Packagist"
EcosystemMaven Ecosystem = "Maven"
EcosystemNuGet Ecosystem = "NuGet"
EcosystemLinux Ecosystem = "Linux"
EcosystemDebian Ecosystem = "Debian"
EcosystemAlpine Ecosystem = "Alpine"
EcosystemHex Ecosystem = "Hex"
EcosystemAndroid Ecosystem = "Android"
EcosystemGitHubActions Ecosystem = "GitHub Actions"
EcosystemPub Ecosystem = "Pub"
EcosystemConanCenter Ecosystem = "ConanCenter"
EcosystemRockyLinux Ecosystem = "Rocky Linux"
EcosystemAlmaLinux Ecosystem = "AlmaLinux"
EcosystemBitnami Ecosystem = "Bitnami"
EcosystemPhotonOS Ecosystem = "Photon OS"
EcosystemCRAN Ecosystem = "CRAN"
EcosystemBioconductor Ecosystem = "Bioconductor"
EcosystemSwiftURL Ecosystem = "SwiftURL"
)
var Ecosystems = []Ecosystem{
EcosystemGo,
EcosystemNPM,
EcosystemOSSFuzz,
EcosystemPyPI,
EcosystemRubyGems,
EcosystemCratesIO,
EcosystemPackagist,
EcosystemMaven,
EcosystemNuGet,
EcosystemLinux,
EcosystemDebian,
EcosystemAlpine,
EcosystemHex,
EcosystemAndroid,
EcosystemGitHubActions,
EcosystemPub,
EcosystemConanCenter,
EcosystemRockyLinux,
EcosystemAlmaLinux,
EcosystemBitnami,
EcosystemPhotonOS,
EcosystemCRAN,
EcosystemBioconductor,
EcosystemSwiftURL,
}
type SeverityType string
const (
SeverityCVSSV2 SeverityType = "CVSS_V2"
SeverityCVSSV3 SeverityType = "CVSS_V3"
SeverityCVSSV4 SeverityType = "CVSS_V4"
)
type RangeType string
const (
RangeSemVer RangeType = "SEMVER"
RangeEcosystem RangeType = "ECOSYSTEM"
RangeGit RangeType = "GIT"
)
type ReferenceType string
const (
ReferenceAdvisory ReferenceType = "ADVISORY"
ReferenceArticle ReferenceType = "ARTICLE"
ReferenceDetection ReferenceType = "DETECTION"
ReferenceDiscussion ReferenceType = "DISCUSSION"
ReferenceReport ReferenceType = "REPORT"
ReferenceFix ReferenceType = "FIX"
ReferenceIntroduced ReferenceType = "INTRODUCED"
ReferencePackage ReferenceType = "PACKAGE"
ReferenceEvidence ReferenceType = "EVIDENCE"
ReferenceWeb ReferenceType = "WEB"
)
type CreditType string
const (
CreditFinder CreditType = "FINDER"
CreditReporter CreditType = "REPORTER"
CreditAnalyst CreditType = "ANALYST"
CreditCoordinator CreditType = "COORDINATOR"
CreditRemediationDeveloper CreditType = "REMEDIATION_DEVELOPER" //nolint:gosec
CreditRemediationReviewer CreditType = "REMEDIATION_REVIEWER" //nolint:gosec
CreditRemediationVerifier CreditType = "REMEDIATION_VERIFIER" //nolint:gosec
CreditTool CreditType = "TOOL"
CreditSponsor CreditType = "SPONSOR"
CreditOther CreditType = "OTHER"
)