← All updates

Polylane for Security: a security review on every pull request

Polylane now reviews the code each pull request adds for security flaws and posts only the flaws it confirms, on GitHub and GitLab, for every workspace.

What changed

The security review runs alongside the production impact review. It reads the lines a change adds, skipping tests, docs and lockfiles. It flags risky lines, checks each one against the code around it to see whether it can be exploited, and posts the flaws it confirms on the pull request. It works on GitHub and GitLab, for every workspace.

A check you can require

The review posts its own Polylane security review check, a check run on GitHub and a commit status on GitLab. A confirmed critical or high flaw fails it, so you can make it a required check in your branch rules. On GitHub, re-run the check to review the change again.

Only what is confirmed

Candidate flaws that Polylane rules out stay in the investigation thread. The pull request shows only the flaws it confirmed, with where they are and why they matter.

One switch

The review is on by default. Turn it off for the workspace in Settings, under Impact assessments.

Why it matters

A reviewer reads a diff for what it does. The security review reads every added line for the flaws that are easy to miss, such as injection, missing authorisation and exposed secrets, and a required check holds a confirmed critical or high flaw back from merge.

How to use it

  1. In Settings, under Impact assessments, leave Review pull requests for security flaws on. It is on by default.
  2. In your branch rules, make Polylane security review a required check.
  3. Open a pull request. Confirmed flaws show on it, with where they are and why they matter.

Related