Sentinel

Pull request security review

Every fix is proposed by a model and decided by a person.

Sentinel reviews the pull requests of the repositories it is installed on. It explains what the scanners found, drafts a minimal patch, tests it in isolation, and opens a fix pull request only after someone approves the exact diff.

app/serialize.pyProposed fix
99
1010 def load_config(text: str):
11− return yaml.load(text, Loader=yaml.Loader)
11+ return yaml.safe_load(text)
1212
1313
1414 def load_defaults(text: str):
Sandbox
Verified
Re-scanned
gitleaks, semgrep
Patch
03cf51fe1631

From finding to fix, in six checked steps

Each step can stop the run. Nothing reaches your repository without passing all of them, and the last word is always yours.

  1. 01

    Scan

    Semgrep, Gitleaks, Trivy and Checkov run in containers behind an MCP server, chosen by the files in the pull request.

    Scanner output is validated. If a scanner fails, the report says it is incomplete instead of looking clean.

  2. 02

    Triage

    Findings are grouped into issues and explained in plain language by Gemini, with Groq as a fallback.

    Repository text is passed as untrusted data. If the model lowers a severity below the scanner's, the issue is flagged for review.

  3. 03

    Fix

    For one issue, the fixer asks for search-and-replace edits close to the reported lines and turns them into a diff.

    No automatic fix for leaked secrets, or for files that try to address the model.

  4. 04

    Sandbox

    The patch is applied to a copy of the repository in a container with no network and a read-only filesystem, then scanned again.

    Patches that delete or rename files, break syntax or add findings are rejected.

  5. 05

    Approval

    A person reads the diff and approves it by its fingerprint.

    If the pull request changed after the patch was made, the approval is not used and nothing is pushed.

  6. 06

    Fix PR

    The patch is committed to a new sentinel/ branch and opened as a pull request into the author's branch.

    The default branch is protected. Merging stays a human decision.