scan

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) int

Types

type PolicyException

type PolicyException struct {
	Package      string   `json:"package"`
	Capabilities []string `json:"capabilities"`
	Taint        []string `json:"taint"`   // e.g. ["network→exec", "env→exec"]
	Expires      string   `json:"expires"` // ISO 8601 date "2026-06-01"
}

type PolicySuppress added in v0.3.8

type PolicySuppress struct {
	ByFilePattern   []string `json:"by_file_pattern"`   // e.g. ["vendor/**", "test/**"]
	ByModule        []string `json:"by_module"`         // e.g. ["github.com/test/*"]
	ByCapabilityVia []string `json:"by_capability_via"` // e.g. ["import"]
}

PolicySuppress holds suppression rules that silence findings matching specific criteria without removing them from the graph entirely.

Jump to

Keyboard shortcuts

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