Thanks for your interest in secmend!
git clone https://github.com/jay-tank/secmend.git
cd secmend
python -m venv .venv && source .venv/bin/activate
pip install -e '.[dev]'
pytest -q- Tests first. Every change ships with tests; the suite runs fully offline (mock provider + fixtures) — no API key or network required.
- Never send secret values to an LLM. Only masked metadata leaves the machine; keep it that way. Add a test if you touch that path.
- Adding a detector? Add a
Detectortosecmend/detectors.py(most-specific patterns first) with sensibleprovider/severity/exploitation_window, and a test intests/test_detectors.py. - Keep the tool read-only — it advises, it never mutates the user's repo.
- Match the existing style; keep docs in sync with behavior.
Open an issue with a minimal repro. Never paste a real secret — use a fake
look-alike (see tests/fixtures/leaky_config.py).