Skip to content

Add AI fix suggestions for HIGH/CRITICAL findings (opt-in)#12

Merged
EdgarPsda merged 1 commit intomainfrom
v0.6.0/ai-fix-suggestions
Mar 30, 2026
Merged

Add AI fix suggestions for HIGH/CRITICAL findings (opt-in)#12
EdgarPsda merged 1 commit intomainfrom
v0.6.0/ai-fix-suggestions

Conversation

@EdgarPsda
Copy link
Copy Markdown
Owner

  • New cli/ai package: Client supporting Ollama, OpenAI, Anthropic providers
  • Cache suggestions by sha256(ruleID+message) to avoid duplicate API calls
  • Only enriches HIGH and CRITICAL findings to keep noise low
  • Add AISuggestion field to Finding struct (shown in terminal + JSON output)
  • Add ai: section to security-config.yml (disabled by default)
  • API keys read from config or OPENAI_API_KEY / ANTHROPIC_API_KEY env vars
  • Terminal reporter shows fix suggestion inline under each finding
  • Default provider: ollama (local, privacy-first, no data sent externally)
  • 5 unit tests: defaults, severity filter, caching, prompt content, cache keys

- New cli/ai package: Client supporting Ollama, OpenAI, Anthropic providers
- Cache suggestions by sha256(ruleID+message) to avoid duplicate API calls
- Only enriches HIGH and CRITICAL findings to keep noise low
- Add AISuggestion field to Finding struct (shown in terminal + JSON output)
- Add ai: section to security-config.yml (disabled by default)
- API keys read from config or OPENAI_API_KEY / ANTHROPIC_API_KEY env vars
- Terminal reporter shows fix suggestion inline under each finding
- Default provider: ollama (local, privacy-first, no data sent externally)
- 5 unit tests: defaults, severity filter, caching, prompt content, cache keys
@github-actions
Copy link
Copy Markdown

🔐 DevSecOps Kit Security Summary

  • Gitleaks: 0 leak(s)
  • Trivy FS:
    • CRITICAL: 0
    • HIGH: 0
    • MEDIUM: 0
    • LOW: 0
  • Semgrep: 0 finding(s)

Status:PASS

@EdgarPsda EdgarPsda merged commit d49779a into main Mar 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant