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

secrets

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSecretsScan

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

The getSecretsScanResults function runs the secrets scan flow, which includes the following steps: Creating an SecretScanManager object. Running the analyzer manager executable. Parsing the analyzer manager results.

Types

type SecretScanManager

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

func (*SecretScanManager) DeprecatedRun added in v1.29.3

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

func (*SecretScanManager) Run

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

type SecretsScanParams added in v1.29.3

type SecretsScanParams struct {
	ThreadId         int
	TargetCount      int
	ScanType         SecretsScanType
	ValidateSecrets  bool
	ResultsToCompare []*sarif.Run
	Target           results.ScanTarget
}

type SecretsScanType

type SecretsScanType string
const (
	SecretsScannerType            SecretsScanType = "secrets-scan"         // #nosec
	SecretsScannerDockerScanType  SecretsScanType = "secrets-docker-scan"  // #nosec
	SecretsScannerGenericScanType SecretsScanType = "secrets-generic-scan" // #nosec
)

Jump to

Keyboard shortcuts

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