Contributing
March 23, 2026 · View on GitHub
Thanks for helping improve AppSec Crew.
Getting started
git clone https://github.com/celagus/appsec-crew.git
cd appsec-crew
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
pytest
Local verification
-
Unit tests (start here) — no API keys or scanners:
pip install -e ".[dev]" pytest -v # optional coverage (requires pytest-cov, included in [dev]): pytest -q --cov=appsec_crew --cov-report=term-missing -
CLI smoke — verifies the entrypoint and config resolution. With default/bundled config and no
OPENAI_API_KEY, expect exit code 3 and a message about LLM keys:appsec-crew --repo . -
End-to-end — see README § Local usage: put betterleaks, osv-scanner, and semgrep on
PATH, setGITHUB_TOKEN,GITHUB_REPOSITORY=owner/repo, andOPENAI_API_KEY, thenappsec-crew --repo /path/to/repo-to-scan. This hits real scanners and GitHub (issues/PRs).
By participating, you agree to abide by the Code of Conduct.
Pull requests
- Open an issue first for large features or design changes (optional but appreciated).
- Keep changes focused on one concern per PR.
- Run
pytestlocally; fix failures before requesting review. - Update
README.mdor examples if behavior or configuration changes.
Code style
- Match existing patterns in the codebase (typing, imports, error handling).
- Prefer small, reviewable diffs over drive-by refactors.
Security
Do not commit secrets, tokens, or internal URLs. See SECURITY.md.