osvscanner

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SeverityCritical = "CRITICAL"
	SeverityHigh     = "HIGH"
	SeverityModerate = "MODERATE"
	SeverityLow      = "LOW"
)

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:     "osv-scanner",
	Requires: []*analysis.Analyzer{sourcecode.Analyzer, archive.Analyzer},
	Run:      run,
	Rules: []*analysis.Rule{
		osvScannerCriticalSeverityDetected,
		osvScannerHighSeverityDetected,
		osvScannerModerateSeverityDetected,
		osvScannerLowSeverityDetected,
		scanningFailure,
		scanningParseFailure,
		scanningSucceeded,
	},
	ReadmeInfo: analysis.ReadmeInfo{
		Name:         "Vulnerability Scanner",
		Description:  "Detects critical vulnerabilities in Go modules and yarn lock files.",
		Dependencies: "[osv-scanner](https://github.com/google/osv-scanner), `sourceCodeUri`",
	},
}
View Source
var GrafanaPackages = map[string]bool{
	"@grafana/data":    true,
	"@grafana/e2e":     true,
	"@grafana/runtime": true,
	"@grafana/toolkit": true,
	"@grafana/ui":      true,
}
View Source
var WhitelistedPackages = map[string]bool{

	"playwright@1.55.0": true,
}

Functions

func CacheGrafanaPackages added in v0.10.0

func CacheGrafanaPackages(
	allPackages []lockfile.PackageDetails,
) ([]lockfile.PackageFlattened, error)

func FilterOSVResults

func FilterOSVResults(source models.VulnerabilityResults, lockFile string) models.VulnerabilityResults

func IncludedByGrafanaPackage added in v0.10.0

func IncludedByGrafanaPackage(
	packageName string,
	cache []lockfile.PackageFlattened,
) (bool, string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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