mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Labels use dim style while values use bold semantic colors, making counts visually prominent. Threat category breakdown now colors each category independently (injection=red, exfiltration=orange, etc.) instead of uniform yellow, so users can distinguish threat types at a glance.
16 lines
544 B
Go
16 lines
544 B
Go
package audit
|
|
|
|
// integrityAnalyzer wraps content hash integrity verification.
|
|
// Runs at skill scope after all files have been cached.
|
|
type integrityAnalyzer struct{}
|
|
|
|
func (a *integrityAnalyzer) ID() string { return AnalyzerIntegrity }
|
|
func (a *integrityAnalyzer) Scope() AnalyzerScope { return ScopeSkill }
|
|
|
|
func (a *integrityAnalyzer) Analyze(ctx *AnalyzeContext) ([]Finding, error) {
|
|
if ctx.DisabledIDs["content-integrity"] {
|
|
return nil, nil
|
|
}
|
|
return checkContentIntegrity(ctx.SkillPath, ctx.FileCache, ctx.AllFiles), nil
|
|
}
|