Documentation
¶
Index ¶
- func EnrichCycloneDXBOMForGitLabReachability(bom *cyclonedx.BOM, scanResults *results.SecurityCommandResults)
- func WriteDependencyScanningReport(outputDir string, report *DependencyScanningReport) error
- type AnalyzerScanner
- type Dependency
- type DependencyScanningReport
- type DetailNamedListItem
- type Identifier
- type Link
- type Location
- type Package
- type ScanReport
- type Vendor
- type VulnerabilityReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnrichCycloneDXBOMForGitLabReachability ¶
func EnrichCycloneDXBOMForGitLabReachability(bom *cyclonedx.BOM, scanResults *results.SecurityCommandResults)
EnrichCycloneDXBOMForGitLabReachability adds GitLab CycloneDX properties so the Security UI "Reachable" field reflects JFrog contextual analysis: Applicable → in_use, other assessed → not_found, no applicability data → omitted (shows as "Not Available").
func WriteDependencyScanningReport ¶
func WriteDependencyScanningReport(outputDir string, report *DependencyScanningReport) error
Types ¶
type AnalyzerScanner ¶
type Dependency ¶
type DependencyScanningReport ¶
type DependencyScanningReport struct {
Scan ScanReport `json:"scan"`
Schema string `json:"schema,omitempty"`
Version string `json:"version"`
Vulnerabilities []VulnerabilityReport `json:"vulnerabilities"`
}
func ConvertToGitLabDependencyScanningReport ¶
func ConvertToGitLabDependencyScanningReport(scanResults *results.SecurityCommandResults, startTime, endTime time.Time, frogbotVersion string) (*DependencyScanningReport, error)
type DetailNamedListItem ¶
type Identifier ¶
type Location ¶
type Location struct {
File string `json:"file"`
Dependency Dependency `json:"dependency"`
}
type ScanReport ¶
type ScanReport struct {
Analyzer AnalyzerScanner `json:"analyzer"`
Scanner AnalyzerScanner `json:"scanner"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
Status string `json:"status"`
Type string `json:"type"`
}
type VulnerabilityReport ¶
type VulnerabilityReport struct {
ID string `json:"id"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Severity string `json:"severity,omitempty"`
Solution string `json:"solution,omitempty"`
Identifiers []Identifier `json:"identifiers"`
Location Location `json:"location"`
Links []Link `json:"links,omitempty"`
Details map[string]DetailNamedListItem `json:"details,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.