Set up PR review
Enable automated security review for pull requests on a project. Each pull request receives an AI-driven security audit with inline comments and fix suggestions.
Prerequisites
- An AISafe account with manager or higher role.
- A connected repository, via the GitHub App or GitLab integration.
- A Project bound to the repository.
Steps
- Connect your VCS. In Integrations, connect GitHub or GitLab and grant access to the repositories you want to review. Ensure the GitHub App or GitLab integration has pull request webhook permissions for the target repository.
- Create a project. In Projects, create a new project and select the connected repository as its source. The project becomes the continuous security entity for the repository and owns a living knowledge base.
- Enable PR review. Open the project, go to the PR Review tab or settings section, and toggle Enable PR review. Optionally configure which branches to review and the severity threshold for comments.
PR review is now active. The next pull request against the repository triggers an automated security review.
Verify with a test PR
- Create a branch and introduce a deliberate vulnerability, such as an SQL injection in a query.
- Open a pull request.
- Within a few minutes, AISafe posts inline comments identifying the vulnerability and suggesting a fix.
If a pull request does not trigger a review, check the project's Source tab and the delivery log. See How it works for how to diagnose a missed event.
Next steps
- Guide: Set up PR review — the full walkthrough with screenshots and configuration options.