issues

package
v2.27.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const FailPrRuleMessage = "one or more violations incurred by '%s' watch, which has the 'fail_pull_request' rule action set upon one of its policies"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicableEvidences

type ApplicableEvidences struct {
	Evidence           formats.Evidence
	Severity           string
	ScannerDescription string
	IssueId            string
	CveSummary         string
	ImpactedDependency string
	Remediation        string
}

type ScansIssuesCollection

type ScansIssuesCollection struct {
	formats.ScanStatus

	LicensesViolations []formats.LicenseViolationRow

	ScaVulnerabilities []formats.VulnerabilityOrViolationRow
	ScaViolations      []formats.VulnerabilityOrViolationRow

	IacVulnerabilities []formats.SourceCodeRow
	IacViolations      []formats.SourceCodeRow

	SecretsVulnerabilities []formats.SourceCodeRow
	SecretsViolations      []formats.SourceCodeRow

	SastViolations      []formats.SourceCodeRow
	SastVulnerabilities []formats.SourceCodeRow
}

Group issues by scan type

func (*ScansIssuesCollection) Append

func (ic *ScansIssuesCollection) Append(issues *ScansIssuesCollection)

func (*ScansIssuesCollection) AppendStatus

func (ic *ScansIssuesCollection) AppendStatus(scanStatus formats.ScanStatus)

func (*ScansIssuesCollection) GetAllIssuesCount

func (ic *ScansIssuesCollection) GetAllIssuesCount(includeSecrets bool) int

func (*ScansIssuesCollection) GetApplicableEvidences

func (ic *ScansIssuesCollection) GetApplicableEvidences() (evidences []ApplicableEvidences)

func (*ScansIssuesCollection) GetScanIssuesSeverityCount

func (ic *ScansIssuesCollection) GetScanIssuesSeverityCount(scanType utils.SubScanType, vulnerabilities, isViolation bool) map[severityutils.Severity]int

func (*ScansIssuesCollection) GetScanStatus

func (ic *ScansIssuesCollection) GetScanStatus(scanType utils.SubScanType) *int

func (*ScansIssuesCollection) GetTotalScaViolations

func (ic *ScansIssuesCollection) GetTotalScaViolations() int

func (*ScansIssuesCollection) GetTotalViolations

func (ic *ScansIssuesCollection) GetTotalViolations(includeSecrets bool) int

func (*ScansIssuesCollection) GetTotalVulnerabilities

func (ic *ScansIssuesCollection) GetTotalVulnerabilities(includeSecrets bool) int

func (*ScansIssuesCollection) HasErrors

func (ic *ScansIssuesCollection) HasErrors() bool

Only if performed and failed

func (*ScansIssuesCollection) IacIssuesExists

func (ic *ScansIssuesCollection) IacIssuesExists() bool

func (*ScansIssuesCollection) IsFailPrRuleApplied added in v2.27.0

func (ic *ScansIssuesCollection) IsFailPrRuleApplied() bool

Checkes if a 'fail_pr' rule is applied to any of the violations in the collection

func (*ScansIssuesCollection) IsScanNotCompleted

func (ic *ScansIssuesCollection) IsScanNotCompleted(scanType utils.SubScanType) bool

func (*ScansIssuesCollection) IssuesExists

func (ic *ScansIssuesCollection) IssuesExists(includeSecrets bool) bool

func (*ScansIssuesCollection) SastIssuesExists

func (ic *ScansIssuesCollection) SastIssuesExists() bool

func (*ScansIssuesCollection) ScaIssuesExists

func (ic *ScansIssuesCollection) ScaIssuesExists() bool

func (*ScansIssuesCollection) SecretsIssuesExists

func (ic *ScansIssuesCollection) SecretsIssuesExists() bool

Jump to

Keyboard shortcuts

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