Use when reviewing or approving a pull request
80
100%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Advisory
Suggest reviewing before use
Review pull requests thoroughly before merging.
sk-, AKIA, password =)query = "SELECT * FROM users WHERE id = " + user_input)When flagging an issue on a specific line, use this format:
**[FILE path/to/file.py, Line 42]** — SEVERITY: Brief issue label
Explanation of the problem and why it matters.
Suggestion: `corrected_code_snippet_here`Example — security issue:
**[FILE app/routes/users.py, Line 17]** — HIGH: SQL Injection Risk
User input is concatenated directly into the query string, allowing an attacker to manipulate the query.
Suggestion: Use a parameterised query instead:
`cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))`Example — code quality issue:
**[FILE utils/parser.py, Line 88]** — LOW: Magic Number
The value `86400` is used without explanation.
Suggestion: Replace with a named constant: `SECONDS_IN_A_DAY = 86400`Given a diff like:
+ def get_user(user_id):
+ query = "SELECT * FROM users WHERE id = " + user_id
+ return db.execute(query)Expected review output:
[FILE db/users.py, Line 3] — HIGH: SQL Injection Risk
user_idis concatenated directly into the SQL string. A malicious value like1 OR 1=1would expose all users.
Suggestion:return db.execute("SELECT * FROM users WHERE id = %s", (user_id,))Summary: One blocking security issue found. No tests were added for this function. Please address the injection vulnerability and add unit tests before merging.
REQUEST_CHANGES
End every review with a summary paragraph followed by one of: