scc

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 27 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

This section is empty.

Variables

This section is empty.

Functions

func Triage added in v0.16.0

func Triage(vuln *model.Vulnerability, attackExposure *sccv2pb.AttackExposure) *triage.RiskenTriage

Types

type SCCClient

type SCCClient struct {
	// contains filtered or unexported fields
}

type SCCServiceClient

type SCCServiceClient interface {
	// contains filtered or unexported methods
}

func NewSCCClient

func NewSCCClient(ctx context.Context, credentialPath string, l logging.Logger) (SCCServiceClient, error)

type SccAsset added in v0.14.0

type SccAsset struct {
	Type               string `json:"type,omitempty"`
	Service            string `json:"service,omitempty"`
	Location           string `json:"location,omitempty"`
	FullName           string `json:"full_name,omitempty"`
	DisplayName        string `json:"display_name,omitempty"`
	ParentDisplayName  string `json:"parent_display_name,omitempty"`
	ProjectDisplayName string `json:"project_display_name,omitempty"`
	Organization       string `json:"organization,omitempty"`
}

type SccFinding added in v0.11.0

type SccFinding struct {
	Asset         *SccAsset                `json:"asset"`
	Finding       *sccv2pb.Finding         `json:"finding"`
	SccDetailURL  string                   `json:"scc_detail_url"`
	Vulnerability *vulnmodel.Vulnerability `json:"vulnerability,omitempty"`
	RiskenTriage  *triage.RiskenTriage     `json:"risken_triage,omitempty"`
}

type SqsHandler

type SqsHandler struct {
	// contains filtered or unexported fields
}

func NewSqsHandler

func NewSqsHandler(
	fc finding.FindingServiceClient,
	ac alert.AlertServiceClient,
	gc google.GoogleServiceClient,
	sccc SCCServiceClient,
	vc *vuln.Client,
	includeLowSeverity bool,
	reduceScoreFindingClass []string,
	l logging.Logger,
) *SqsHandler

func (*SqsHandler) GetVulnerability added in v0.14.0

func (s *SqsHandler) GetVulnerability(ctx context.Context, cveID string) (*model.Vulnerability, error)

func (*SqsHandler) HandleMessage

func (s *SqsHandler) HandleMessage(ctx context.Context, sqsMsg *types.Message) error

Jump to

Keyboard shortcuts

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