scanner

package
v0.73.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllSeverities = Severities{"UNKNOWN", "LOW", "MEDIUM", "HIGH", "CRITICAL"}

Functions

func CreateMemoryFs added in v0.61.0

func CreateMemoryFs(files []types.File) (*memoryfs.FS, map[string]ppConsts.Platform, error)

This function is copied from trivy.

func MatchResultSeverity

func MatchResultSeverity(severity string) buildsecurity.SeverityEnum

func MatchResultType

func MatchResultType(resultType string) buildsecurity.Result_TypeEnum

func MatchTriggeredBy added in v0.24.0

func MatchTriggeredBy(triggeredBy string) buildsecurity.TriggeredByEnum

func Scan

func Scan(ctx context.Context, opts flag.Options, cmdName, path string) (*trivyTypes.Report, []*buildsecurity.Pipeline, error)

func ScanPipelines added in v0.61.0

func ScanPipelines(ctx context.Context, repositoryPipelines []*buildsecurity.Pipeline, files []types.File) (trivyTypes.Results, error)

Types

type Severities

type Severities []string

func (Severities) Any

func (s Severities) Any(checkSev string) bool

Jump to

Keyboard shortcuts

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