Skip to content
BENIBIX Learn

/security-review Command

Also known as /security-review, Security review

It looks at your changes for holes that let bad people in.

Think of it like

It is like a guard who checks each new door for a weak lock.

Example

Jack adds a search box that builds a database query. /security-review warns that the text goes into the query unchecked. That is SQL injection.

Why it matters

Security bugs rarely break a test, so they slip through. A review aimed at them catches more.

Definition

/security-review checks the changes on your branch for security holes. It compares your branch with the default branch on origin. It looks for risks such as injection, broken login checks and data that leaks out. It only reads what changed, not the whole project. It needs a remote named origin.

Example code

console
/security-review
Check this branch's changes for security risks.
This one looks only for security risks.

Common mistake

Thinking it checks the whole project. It reads only the diff against the default branch, so old code is not looked at.

Key takeaways

  1. 1
    Security only. Not every bug.
  2. 2
    Your branch's diff. Against origin.
  3. 3
    Needs origin. A git remote.

Learn it properly