Python project template met pre-configured security pipeline.
# Clone template
gh repo create Nootski/NIEUW-PROJECT \
--template Nootski/python-secure-template \
--private --clone
# Activeer pre-commit hooks lokaal
pip install pre-commit
pre-commit installDraait automatisch bij git commit:
- gitleaks — secrets/API keys detecteren
- ruff — lint + format (auto-fix)
- bandit — Python security smells
- standaard hooks — geen private keys, geen merge conflicts
Handmatig draaien:
pre-commit run --all-files- Gitleaks secrets scan
- Ruff lint + format check
- Pytest (als tests/ bestaat)
- Bandit security scan
- pip-audit CVE scan
Automatische PR's bij kwetsbare dependencies (pip + GitHub Actions), elke maandag.
Bandit B104 (bind 0.0.0.0) is geskipped — false positive voor Gunicorn/Uvicorn productie setup.
Gitleaks — voeg toe aan .gitleaks.toml:
[allowlist]
paths = [".env.example"]