scaplugin

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Sbom                 Sbom               // The raw SBOM bytes
	Metadata             Metadata           // Information about the finding
	FileExclusions       []string           // Paths for files that other plugins should ignore
	NormalisedTargetFile string             // The target file name without any qualifiers, e.g. `uv.lock` (and not `dir/uv.lock`)
	WorkspacePackages    []WorkspacePackage // Packages that are part of a workspace
	Error                error              // Error that occurred while building the finding
}

type Metadata added in v0.1.1

type Metadata struct {
	PackageManager string
	Name           string
	Version        string
}

type Options

type Options struct {
	AllProjects bool
	Dev         bool
}

type Sbom

type Sbom []byte

type ScaPlugin

type ScaPlugin interface {
	BuildFindingsFromDir(ctx context.Context, dir string, options *Options, logger *zerolog.Logger) ([]Finding, error)
}

type WorkspacePackage added in v0.3.0

type WorkspacePackage struct {
	Name    string
	Version string
	Path    string // Relative path to the workspace package directory
}

Jump to

Keyboard shortcuts

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