Help us shape the future of Go! Take the 2026 Go Developer Survey

sast

package
v1.41.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSastScan

func RunSastScan(params SastScanParams, scanner *jas.JasScanner) (vulnerabilitiesResults []*sarif.Run, violationsResults []*sarif.Run, err error)

func SastChangedFilesForTarget added in v1.28.0

func SastChangedFilesForTarget(gitCtx *xscservices.XscGitInfoContext, targetPath, rootDir string) []string

SastChangedFilesForTarget returns absolute paths of changed files under the root directory that belong to the target path.

Types

type SastScanManager

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

func (*SastScanManager) DeprecatedRun added in v1.29.3

func (ssm *SastScanManager) DeprecatedRun(module jfrogappsconfig.Module, centralConfigExclusions []string) (vulnerabilitiesSarifRuns []*sarif.Run, violationsSarifRuns []*sarif.Run, err error)

func (*SastScanManager) Run

func (ssm *SastScanManager) Run(target results.ScanTarget) (vulnerabilitiesSarifRuns []*sarif.Run, violationsSarifRuns []*sarif.Run, err error)

type SastScanParams added in v1.28.0

type SastScanParams struct {
	SignedDescriptions bool
	SastRules          string
	TargetCount        int
	Target             results.ScanTarget
	ThreadId           int
	SastChangedFiles   []string
	ChangedFilesMode   bool
	ResultsToCompare   []*sarif.Run
}

Jump to

Keyboard shortcuts

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