Skip to main content
PR review checks every pull request for security issues. It reviews the changed code and any changed dependencies, verifies what it finds, and comments on the pull request. PR review works with GitHub and GitLab. It isn’t available for Azure DevOps.

Turn on PR review

PR review is off for each newly connected repository. To turn it on, use the PR reviews switch on the repository’s Scan tab in Repositories. You need the Owner or Admin role to change it.

When a review runs

A review runs when a pull request is opened, reopened, marked ready for review, or gets new commits.
  • Drafts aren’t reviewed until they’re ready.
  • New commits cancel the older review.
  • Pull requests from forks are reviewed.
  • Enclave reviews every changed file, however large the pull request, except generated and vendored files. If it couldn’t review some files, its comment says which.
  • When your monthly allowance runs out, Enclave comments to say it skipped the review.
To review a pull request again, comment @enclave-ai review on it. On GitLab, mention the account you connected instead, for example @enclave-bot review. On GitHub, you can also click Re-run on the Enclave / PR analysis check. Enclave reviews the latest commit even if it was already reviewed. It reacts 👀 to your comment, or replies with the reason it didn’t start a review. You can also ask Research: Run the Workflow "PR review".

What the review does

  1. Analyzes the changed code, and the dependencies if a manifest or lockfile changed.
  2. Drops issues that aren’t real, aren’t security issues, or don’t point at the change.
  3. Adjusts severity based on whether the code is reachable from the internet.
  4. Saves the findings to Risk and comments on the pull request.
Enclave posts its review as comments. It never approves a pull request or requests changes. On GitHub, the review also adds a check named Enclave / PR analysis. The check fails while a high or critical concern is open. If some files weren’t reviewed, a check that would pass shows Partial review instead. Public repositories don’t get comments.
Start with the check as non-blocking. Make it required once your team trusts the signal.

Respond to a review

You can answer Enclave from the pull request. You need write access to the repository: write, maintain, or admin on GitHub, or the Developer role or higher on GitLab. Enclave ignores comments from everyone else and from bots.
  • Resolve a thread to dismiss its concern. Enclave stops counting the concern and updates the check, for example to No open concerns (1 dismissed). Reopen the thread to restore the concern.
  • Reply on a thread. The agent that raised the concern reads your reply and answers in the thread. If the code shows the concern doesn’t hold, it dismisses the concern. On GitLab, it also resolves the thread. On GitHub, you resolve it yourself.
  • Mention Enclave anywhere else. Mention @enclave-ai in any comment on the pull request, or the connected account on GitLab. The agent behind the latest review answers where you wrote. If the pull request has no review yet, Enclave explains how to start one.
Enclave reacts 👀 when your comment reaches the agent. Comments you send during a review wait until the review finishes. The agent judges your comment against the code. Saying a concern is mitigated doesn’t dismiss it unless the code shows it. When you push again, a concern that was dismissed and is found again stays in its thread. Enclave doesn’t post it again or count it. On GitLab, Enclave applies a resolve or reopen at the next comment or merge request update. Replies and mentions need the webhook’s Comments events. If Enclave added your webhook before it answered comments, connect GitLab again to update it. If your organization is out of credits, Enclave replies with a notice instead of an answer.

PR findings in Risk

Open Risk → PR findings to see every PR finding with its repository, pull request, and severity. Open a finding to see the issue, its impact, the fix, and the affected lines. Click Get fix prompt, then Copy prompt to paste it into your coding assistant. Open the ⋯ menu to Export PDF or Copy as markdown. PR findings don’t have a triage status, and closing the pull request doesn’t change them.

Dependency analysis

When a pull request changes a manifest or lockfile, Enclave checks the changed packages for supply-chain risk, not just known CVEs. It looks for:
  • Compromised or malicious packages
  • Typosquats and untrusted packages
  • Attacks hidden in routine version bumps
  • Known vulnerabilities
Supported ecosystems: The binary bun.lockb format isn’t supported. To see the known vulnerabilities in the packages your repositories already pin, open Dependencies.