r/coolgithubprojects • • 16h ago

AST Security Reviewer: a GitHub Action that flags SQL injection and hardcoded secrets in Java PRs

Post image

I built a GitHub Action that scans Java code for SQL injection and hardcoded secrets and comments on the exact line in your PR. It parses the code into an AST with JavaParser instead of using regex, so it understands what the code is actually doing.

I tested it on 31 open source repos (27k files) and kept tuning it until false alarms on secrets dropped 83%. There's also an optional local LLM (Ollama) that suggests fixes.

Takes about 2 min to add to a repo: github.com/marketplace/actions/ast-security-reviewer

Would love feedback, especially any false positives you run into.

0 Upvotes

2 comments sorted by

1

u/iamabdullah 16h ago

Is this some kind of joke?

1

u/Antique-Stage7704 16h ago

what happened ??