Documentation
¶
Index ¶
- func ConvertOssJsonToIssues(workDir string, res []byte, includeIgnores bool) ([]types.IssueData, error)
- func ConvertToIssue(workDir string, scanResults []ScanResult, includeIgnores bool) []types.IssueData
- type Annotation
- type AppliedPolicyRules
- type CvssSource
- type Insights
- type OssIssueData
- type ProjectIgnorePath
- type ProjectIgnoredBy
- type ScanResult
- type SeverityChange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertOssJsonToIssues ¶
func ConvertToIssue ¶
func ConvertToIssue(workDir string, scanResults []ScanResult, includeIgnores bool) []types.IssueData
Types ¶
type Annotation ¶
type AppliedPolicyRules ¶
type AppliedPolicyRules struct {
Annotation Annotation `json:"annotation,omitempty"`
SeverityChange SeverityChange `json:"severityChange,omitempty"`
}
type CvssSource ¶
type OssIssueData ¶
type OssIssueData struct {
Key string `json:"key"`
Title string `json:"title"`
Name string `json:"name"`
LineNumber int `json:"lineNumber"`
Description string `json:"description"`
Version string `json:"version"`
License string `json:"license,omitempty"`
PackageManager string `json:"packageManager"`
PackageName string `json:"packageName"`
From []string `json:"from"`
FixedIn []string `json:"fixedIn,omitempty"`
UpgradePath []any `json:"upgradePath,omitempty"`
IsUpgradable bool `json:"isUpgradable,omitempty"`
CVSSv3 string `json:"CVSSv3,omitempty"`
CvssScore float64 `json:"cvssScore,omitempty"`
CvssSources []CvssSource `json:"cvssSources,omitempty"`
Exploit string `json:"exploit,omitempty"`
IsPatchable bool `json:"isPatchable"`
ProjectName string `json:"projectName"`
DisplayTargetFile types.FilePath `json:"displayTargetFile"`
Language string `json:"language"`
Details string `json:"details"`
MatchingIssues []OssIssueData `json:"matchingIssues"`
Lesson string `json:"lesson,omitempty"`
Remediation string `json:"remediation"`
AppliedPolicyRules AppliedPolicyRules `json:"appliedPolicyRules,omitempty"`
}
type ProjectIgnorePath ¶
type ProjectIgnorePath struct {
Module string `json:"module,omitempty"`
}
type ProjectIgnoredBy ¶
type ScanResult ¶
type ScanResult struct {
Vulnerabilities []ossIssue `json:"vulnerabilities"`
Ok bool `json:"ok"`
DependencyCount int `json:"dependencyCount"`
Policy string `json:"policy"`
IsPrivate bool `json:"isPrivate"`
LicensesPolicy licensesPolicy `json:"licensesPolicy"`
PackageManager string `json:"packageManager"`
IgnoreSettings ignoreSettings `json:"ignoreSettings"`
Summary string `json:"summary"`
FilesystemPolicy bool `json:"filesystemPolicy"`
UniqueCount int `json:"uniqueCount"`
ProjectName string `json:"projectName"`
FoundProjectCount int `json:"foundProjectCount"`
DisplayTargetFile string `json:"displayTargetFile"`
Path string `json:"path"`
Remediation remediation `json:"remediation,omitempty"`
Filtered struct {
Ignore []any `json:"ignore"`
Patch []any `json:"patch"`
} `json:"filtered,omitempty"`
}
type SeverityChange ¶
Click to show internal directories.
Click to hide internal directories.