Skip to content

Commit 6fde583

Browse files
dartanghanDartanghan Vani
andauthored
fix(plugin): add validations to llm security prompt (#110)
Co-authored-by: Dartanghan Vani <d.a.r.t.a.n.g.h.a.n@gmail.com>
1 parent 703e49d commit 6fde583

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/metis/plugins/plugins.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ general_prompts:
1414
FILE: {file_path}
1515
security_review_report: |-
1616
3. How to Report
17-
- List all identified security issues in a JSON array.
17+
- Return a JSON object with a single key "reviews" mapping to a list of identified security issues.
1818
- Each element must strictly follow this structure:
1919
[[REVIEW_SCHEMA_FIELDS]]
20-
- IMPORTANT: If no identified security issues are found, return: {\"reviews\": []}
20+
- If no identified security issues are found, return: {\"reviews\": []}
21+
- If no CWE identified, does not guess a number.
22+
- Ensure the json is valid, without any additional commentary or text outside the json structure.
2123
2224
plugins:
2325
c:

0 commit comments

Comments
 (0)