config

package
v1.18.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateEcosystemExclusions added in v1.18.1

func ValidateEcosystemExclusions(source string, field string, ecosystems []string, r reporter.Reporter)

ValidateEcosystemExclusions warns about ignore-ecosystems entries that will never match because they don't correspond to a known ecosystem. source and field name the origin of the entries (e.g. "config", "sca.ignore-ecosystems") for the warning message.

func ValidatePackageExclusions added in v1.18.1

func ValidatePackageExclusions(source string, field string, packages []string, r reporter.Reporter)

ValidatePackageExclusions warns about ignore-packages entries that will never match because they're malformed or don't correspond to a known ecosystem. source and field name the origin of the entries (e.g. "config", "sca.ignore-packages") for the warning message.

Types

type Exclusions added in v1.18.1

type Exclusions struct {
	Paths      []string
	Ecosystems []string
	Packages   []string
}

Exclusions holds the SCA scanning exclusions extracted from a unified config file.

func FetchExclusions

func FetchExclusions(dir string, baseURL string, jwtToken string, exitOnFetchFailure bool, r reporter.Reporter) (Exclusions, string, error)

FetchExclusions returns ignore-path, ignore-ecosystem and ignore-package exclusions from local unified config and, when Datadog authentication is available, from the merged remote config.

type SCAConfig

type SCAConfig struct {
	IgnorePaths      []string `yaml:"ignore-paths"`
	IgnoreEcosystems []string `yaml:"ignore-ecosystems"`
	IgnorePackages   []string `yaml:"ignore-packages"`
}

Jump to

Keyboard shortcuts

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