File size: 1,683 Bytes
a273844
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CodeSecurityResult",
  "type": "object",
  "required": [
    "risk_summary",
    "vulnerabilities",
    "fix_plan",
    "compliance_notes",
    "need_security_review",
    "report_markdown"
  ],
  "properties": {
    "insufficient_context": { "type": "boolean" },
    "risk_summary": { "type": "string" },
    "vulnerabilities": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["type", "severity", "status", "file", "line", "rule_id", "description", "evidence", "impact", "fix_suggestion"],
        "properties": {
          "type": { "type": "string" },
          "severity": { "type": "string", "enum": ["critical", "high", "medium", "low", "info"] },
          "status": { "type": "string", "enum": ["confirmed", "suspicious", "false_positive_candidate"] },
          "tool": { "type": "string" },
          "file": { "type": "string" },
          "line": { "type": "number" },
          "rule_id": { "type": "string" },
          "description": { "type": "string" },
          "evidence": { "type": "string" },
          "impact": { "type": "string" },
          "fix_suggestion": { "type": "string" },
          "safe_example": { "type": "string" }
        }
      }
    },
    "fix_plan": { "type": "array", "items": { "type": "string" } },
    "compliance_notes": { "type": "array", "items": { "type": "string" } },
    "need_security_review": { "type": "boolean" },
    "confidence": { "type": "string", "enum": ["high", "medium", "low"] },
    "evidence": { "type": "array", "items": { "type": "string" } },
    "report_markdown": { "type": "string" }
  }
}