pilot e2e: buggy file for AI review #1

Closed
gitea_admin wants to merge 1 commits from pilot-e2e into main
Owner

Test PR to validate the pragent pilot end-to-end. Contains intentional bugs (SQL concat, == token compare, mutable default arg). Safe to close after review.

Test PR to validate the pragent pilot end-to-end. Contains intentional bugs (SQL concat, == token compare, mutable default arg). Safe to close after review.
gitea_admin added 1 commit 2026-08-17 18:22:44 +00:00
test: add buggy file for pilot e2e review
AI Review / review (pull_request) Successful in 17s
7257de45c0
pragent-bot bot added the AI-REVIEW label 2026-08-17 18:22:48 +00:00
pragent-bot bot reviewed 2026-08-17 18:23:04 +00:00
pragent-bot bot left a comment

🤖 AI Review · pragent pilot · glm-5.2:cloud · 7257de45

  • [high] test_review_target.py:5 — SQL injection vulnerability via string concatenation. Use parameterized queries (e.g., conn.execute("SELECT * FROM users WHERE id = ?", (user_id,))).
  • [medium] test_review_target.py:9 — Token comparison using == is vulnerable to timing attacks. Use hmac.compare_digest().
  • [medium] test_review_target.py:13 — Mutable default argument [] retains state across function calls. Use items=None and initialize as items = [] inside the function.
🤖 **AI Review** · pragent pilot · glm-5.2:cloud · `7257de45` - [high] test_review_target.py:5 — SQL injection vulnerability via string concatenation. Use parameterized queries (e.g., `conn.execute("SELECT * FROM users WHERE id = ?", (user_id,))`). - [medium] test_review_target.py:9 — Token comparison using `==` is vulnerable to timing attacks. Use `hmac.compare_digest()`. - [medium] test_review_target.py:13 — Mutable default argument `[]` retains state across function calls. Use `items=None` and initialize as `items = []` inside the function.
gitea_admin closed this pull request 2026-08-17 18:23:59 +00:00
Some checks are pending
AI Review / review (pull_request) Successful in 17s

Pull request closed

Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gitea_admin/pragent#1