gitlabreport

package
v3.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 AnalyzerScanner struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Version string `json:"version"`
	Vendor  Vendor `json:"vendor"`
	URL     string `json:"url,omitempty"`
}

type Dependency

type Dependency struct {
	Package Package `json:"package"`
	Version string  `json:"version"`
	Direct  *bool   `json:"direct,omitempty"`
}

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 DetailNamedListItem struct {
	Name  string `json:"name"`
	Type  string `json:"type"`
	Value string `json:"value"`
}

type Identifier

type Identifier struct {
	Type  string `json:"type"`
	Name  string `json:"name"`
	Value string `json:"value"`
	URL   string `json:"url,omitempty"`
}
type Link struct {
	Name string `json:"name,omitempty"`
	URL  string `json:"url"`
}

type Location

type Location struct {
	File       string     `json:"file"`
	Dependency Dependency `json:"dependency"`
}

type Package

type Package struct {
	Name string `json:"name"`
}

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 Vendor

type Vendor struct {
	Name string `json:"name"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL