Thanks for wanting to help! Here's the deal:
- No build step β pure Python stdlib only. No
pip install, nonpm, no compilation. - Keep it simple β the scanner is one file (
scripts/scan.py). The rules live at the top. Add a pattern, add a test case, done. - No false positive arms race β if a rule is too noisy, it's worse than no rule. Test on real repos before shipping.
- Open
scripts/scan.pyand find theRULESlist at the top. - Add a new dict with:
id: short unique identifier (e.g."azure-key")pattern: regex that matches the bad thingsev:"high","medium","low", or"info"msg: human-readable description of what was found
- Run
python3 scripts/scan.pyon a repo that uses the thing you're detecting to verify it works and doesn't false-positive on everything.
python3 scripts/scan.py /path/to/your/repo
python3 scripts/scan.py https://github.com/owner/repo/pull/123Open one. Describe what you changed and why. If you added a rule, show it catching something real.