Documentation
¶
Overview ¶
Package scanner defines the contract every detector implements, plus the shared file-walking machinery so each scanner doesn't reinvent it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadIgnore ¶
LoadIgnore reads .andasignore from root, returning its patterns. A missing file yields no patterns. Blank lines and lines starting with '#' are skipped.
Types ¶
type Options ¶
type Options struct {
Validate bool // perform live validation of secrets
Offline bool // make no network calls at all (no validation, no OSV)
Entropy bool // flag high-entropy secret-like values beyond the known rules
TimeoutS int // per-request network timeout, seconds
IgnorePaths []string // .andasignore patterns for file-based scanners
}
Options carries run-wide settings down to individual scanners.
type Scanner ¶
type Scanner interface {
// Name is a short identifier shown in output.
Name() string
// Scan inspects root and returns any findings.
Scan(root string, opts Options) ([]finding.Finding, error)
}
Scanner is one detection module (secrets, vulnerabilities, ...).
Directories
¶
| Path | Synopsis |
|---|---|
|
Package deps scans JavaScript/TypeScript projects for vulnerable npm dependencies and — andas's differentiator — decides whether each vulnerable package is actually reachable from the app's own code before ranking it.
|
Package deps scans JavaScript/TypeScript projects for vulnerable npm dependencies and — andas's differentiator — decides whether each vulnerable package is actually reachable from the app's own code before ranking it. |
|
Package githistory scans a repository's entire git history for secrets — not just the current working tree.
|
Package githistory scans a repository's entire git history for secrets — not just the current working tree. |
|
Package secrets detects hardcoded credentials and — andas's differentiator — verifies whether each one is still live before deciding how loud to be.
|
Package secrets detects hardcoded credentials and — andas's differentiator — verifies whether each one is still live before deciding how loud to be. |
Click to show internal directories.
Click to hide internal directories.