Review security findings before merge

Superagent checks GitHub pull requests for vulnerable code and suspicious dependencies. Review findings in GitHub, with inline comments on the changed lines where applicable.

GitHub pull request #268483 steps
  1. Superagent Security

    Superagent flags a resource isolation issue on the changed line.

  2. PR author

    The author pushes a fix that keeps task results within their own resource.

  3. Superagent Security

    Superagent Security Scan passes after reviewing the updated diff.

How it works

  1. Check scan settings

    Have your agent check which PR scans are enabled in the repository through MCP.

  2. Review a finding

    Give your coding agent a flagged change from GitHub to look up in MCP.

  3. Report the fix

    Have your agent patch the branch and return a structured report through MCP.

What you get

See the checks on sample pull requests from coding agents and outside contributors, with the flagged lines and the changes that cleared them.

GitHub / acme-app · Example0 of 3 merged
Pull requestsSecurity scan

Scope background tasks #184

OpenA coding agent opened this pull request
main ← fix/task-scope
GitHub check
Superagent Security Scan
Updated commit
Success
  1. Superagent flags an unscoped task lookupThe agent's PR adds a task lookup that can run without a resource ID. Superagent comments on src/tasks/resume.ts:42.
  2. The coding agent requires a resource IDThe developer shares the inline finding with the coding agent. Its patch returns an empty list when there is no resource ID.
    src/tasks/resume.ts
    +42if (!resourceId) return [];43return tasks.list({ resourceId });
  3. The new commit passes the security checkTests return no tasks without a resource ID and only matching tasks when a resource ID is present.

Use cases

  • Code from AI agents

    Review agent-authored changes alongside your usual CI checks. If a finding needs a fix, use the inline comment to point the coding agent to the affected code.

  • Outside contributions

    Review Contributor Trust results alongside the code scan when someone submits a pull request from outside your team.

Frequently asked questions

More reading

Start scanning pull requests

Connect a repository so Superagent can scan the next pull request.

Get started