Reference Repository from my Talk of the same title: Pipelines for Securing your Python Development Lifecycle
| samples | Contains samples of things that will cause the pipelines to fail |
| .gitlab-ci.yml | GitLab CI Config |
| .github/workflows/security.yml | GitHub CI Config |
| Pipeline results | [GitLab | GitHub] |
Please feel free to fork this repo and try it yourself.
All of these tools can be run locally as well
Try with uvx:
uvx bandit -x .venv -r .uvx pip-audit -r samples/requirements.txt
Gitleaks
- Install gitleaks
gitleaks git --verbose --redacted .
uv run samples/naughty_yaml.pyMore reading and examples: YAML Deserialization Attack in Python
- Share some other usefull scripts for CI