audit

package
v2.47.7 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultExcludePatterns = []string{"*.git*", "*node_modules*", "*target*", "*venv*", "*test*"}

Functions

func GetTechDependencyTree added in v2.41.5

func GetTechDependencyTree(params xrayutils.AuditParams, tech coreutils.Technology) (flatTree *xrayCmdUtils.GraphNode, fullDependencyTrees []*xrayCmdUtils.GraphNode, err error)

func RunAudit added in v2.41.5

func RunAudit(auditParams *AuditParams) (results *xrayutils.Results, err error)

Runs an audit scan based on the provided auditParams. Returns an audit Results object containing all the scan results. If the current server is entitled for JAS, the advanced security results will be included in the scan results.

Types

type AuditCommand added in v2.4.0

type AuditCommand struct {
	IncludeVulnerabilities bool
	IncludeLicenses        bool
	Fail                   bool
	PrintExtendedTable     bool
	AuditParams
	// contains filtered or unexported fields
}

func NewGenericAuditCommand added in v2.41.5

func NewGenericAuditCommand() *AuditCommand

func (*AuditCommand) CommandName added in v2.41.5

func (auditCmd *AuditCommand) CommandName() string

func (*AuditCommand) CreateXrayGraphScanParams added in v2.41.5

func (auditCmd *AuditCommand) CreateXrayGraphScanParams() *services.XrayGraphScanParams

func (*AuditCommand) Run added in v2.41.5

func (auditCmd *AuditCommand) Run() (err error)

func (*AuditCommand) SetFail added in v2.8.0

func (auditCmd *AuditCommand) SetFail(fail bool) *AuditCommand

func (*AuditCommand) SetIncludeLicenses added in v2.4.0

func (auditCmd *AuditCommand) SetIncludeLicenses(include bool) *AuditCommand

func (*AuditCommand) SetIncludeVulnerabilities added in v2.4.0

func (auditCmd *AuditCommand) SetIncludeVulnerabilities(include bool) *AuditCommand

func (*AuditCommand) SetPrintExtendedTable added in v2.10.0

func (auditCmd *AuditCommand) SetPrintExtendedTable(printExtendedTable bool) *AuditCommand

func (*AuditCommand) SetProject added in v2.4.0

func (auditCmd *AuditCommand) SetProject(project string) *AuditCommand

func (*AuditCommand) SetTargetRepoPath added in v2.4.0

func (auditCmd *AuditCommand) SetTargetRepoPath(repoPath string) *AuditCommand

func (*AuditCommand) SetWatches added in v2.4.0

func (auditCmd *AuditCommand) SetWatches(watches []string) *AuditCommand

type AuditParams added in v2.41.5

type AuditParams struct {
	*xrayutils.AuditBasicParams
	// contains filtered or unexported fields
}

func NewAuditParams added in v2.41.5

func NewAuditParams() *AuditParams

func (*AuditParams) Exclusions added in v2.46.0

func (params *AuditParams) Exclusions() []string

func (*AuditParams) FixableOnly added in v2.41.5

func (params *AuditParams) FixableOnly() bool

func (*AuditParams) InstallFunc added in v2.41.5

func (params *AuditParams) InstallFunc() func(tech string) error

func (*AuditParams) MinSeverityFilter added in v2.41.5

func (params *AuditParams) MinSeverityFilter() string

func (*AuditParams) SetDepsRepo added in v2.46.0

func (params *AuditParams) SetDepsRepo(depsRepo string) *AuditParams

func (*AuditParams) SetExclusions added in v2.46.0

func (params *AuditParams) SetExclusions(exclusions []string) *AuditParams

func (*AuditParams) SetFixableOnly added in v2.41.5

func (params *AuditParams) SetFixableOnly(fixable bool) *AuditParams

func (*AuditParams) SetGraphBasicParams added in v2.41.5

func (params *AuditParams) SetGraphBasicParams(gbp *xrayutils.AuditBasicParams) *AuditParams

func (*AuditParams) SetInstallFunc added in v2.41.5

func (params *AuditParams) SetInstallFunc(installFunc func(tech string) error) *AuditParams

func (*AuditParams) SetMinSeverityFilter added in v2.41.5

func (params *AuditParams) SetMinSeverityFilter(minSeverityFilter string) *AuditParams

func (*AuditParams) SetThirdPartyApplicabilityScan added in v2.43.0

func (params *AuditParams) SetThirdPartyApplicabilityScan(includeThirdPartyDeps bool) *AuditParams

func (*AuditParams) SetWorkingDirs added in v2.41.5

func (params *AuditParams) SetWorkingDirs(workingDirs []string) *AuditParams

func (*AuditParams) SetXrayGraphScanParams added in v2.41.5

func (params *AuditParams) SetXrayGraphScanParams(xrayGraphScanParams *services.XrayGraphScanParams) *AuditParams

func (*AuditParams) WorkingDirs added in v2.41.5

func (params *AuditParams) WorkingDirs() []string

func (*AuditParams) XrayGraphScanParams added in v2.41.5

func (params *AuditParams) XrayGraphScanParams() *services.XrayGraphScanParams

func (*AuditParams) XrayVersion added in v2.41.5

func (params *AuditParams) XrayVersion() string

Directories

Path Synopsis
jas
iac
sca
go
npm

Jump to

Keyboard shortcuts

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