Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Version = "dev" Commit = "none" BuildDate = "unknown" )
Functions ¶
Types ¶
type ComplianceError ¶ added in v0.1.65
ComplianceError is returned when analysis completes successfully but the measured compliance score falls below the required threshold.
It is distinct from a generic runtime error so that callers (e.g. Execute) can map it to a dedicated exit code:
0 – analysis passed (compliance ≥ threshold) 1 – compliance failure (compliance < threshold) 2 – runtime / configuration error
func (*ComplianceError) Error ¶ added in v0.1.65
func (e *ComplianceError) Error() string
type DegradedError ¶ added in v0.3.51
type DegradedError struct {
Count int
}
DegradedError is returned when --fail-warnings is set and the run produced one or more "could not verify" warnings — e.g. a known-CVE check skipped because an action's pinned commit could not be resolved to a version (tag list blocked by an org IP allow list, rate limit, or network). The run itself completed; some data could not be checked. It maps to exit code 3 (runtime / data condition), distinct from a compliance failure (1) and a configuration error (2), so strict CI can tell "we could not fully verify" apart from "a real control failed".
func (*DegradedError) Error ¶ added in v0.3.51
func (e *DegradedError) Error() string