Skip to content

Run PR security scans with Superagent#9

Merged
homanp merged 4 commits into
mainfrom
feature/superagent-flue-pr-scanner
May 13, 2026
Merged

Run PR security scans with Superagent#9
homanp merged 4 commits into
mainfrom
feature/superagent-flue-pr-scanner

Conversation

@homanp
Copy link
Copy Markdown
Contributor

@homanp homanp commented May 13, 2026

Summary

  • Replace the delegated PR scan API with an in-app Superagent scanner powered by Flue, Daytona, Azure-hosted Kimi, and the checked-in CI/CD security skill.
  • Report PR security concerns as inline review comments while keeping contributor trust separate and locally scored.
  • Update Railway/Docker startup so the GitHub app runs alongside a prebuilt internal Flue service, and rebrand visible checks/links to Superagent.

Test plan

  • bunx --bun tsc --noEmit
  • bunx --bun vitest run src/services/__tests__/prScan.test.ts src/services/__tests__/prScanner.test.ts src/services/__tests__/comments.test.ts src/services/__tests__/config.test.ts src/lib/__tests__/policy.test.ts src/lib/__tests__/azureKimi.test.ts
  • bunx --bun flue build --target node --output .flue-dist
  • docker build -t brin-github-flue-daytona-test .
  • Live-tested against Grok CLI PRs: benign PRs passed with 0 inline comments; malicious PRs failed with inline review comments.

Move PR scanning into the GitHub app using Flue, Daytona, and Azure Kimi so findings can be reported as inline review comments without relying on the old Brin API.
@superagent-security superagent-security Bot added contributor:verified Contributor passed trust analysis. pr:flagged PR flagged for review by security analysis. labels May 13, 2026
@superagent-security
Copy link
Copy Markdown

Brin PR Security Scan

This PR has findings that should be reviewed.

  • Score: 36/100
  • Verdict: suspicious

Findings:

  • security_sabotage: Security tooling config modified: .gitignore

Analyzed by Brin

@homanp
Copy link
Copy Markdown
Contributor Author

homanp commented May 13, 2026

@cursor review

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 53428f7. Configure here.

Comment thread .flue/agents/pr-scan.ts Outdated
Comment thread .flue/connectors/daytona.ts
Comment thread .flue/agents/pr-scan.ts
@homanp homanp merged commit 6266028 into main May 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor:verified Contributor passed trust analysis. pr:flagged PR flagged for review by security analysis.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant