Thank you for your interest in contributing to this project! Please follow the guidelines below to ensure a smooth contribution process.
This repository has security checks in place to prevent accidental commits of private keys and sensitive information.
Before making any commits, you must install pre-commit hooks:
# Install pre-commit
pip install pre-commit
# Install the hooks for this repository
pre-commit install- Your commits will be blocked locally if they contain private keys
- PRs with private keys will fail CI checks and cannot be merged
- This protects everyone from accidentally exposing sensitive information
-
Fork the repository
-
Clone your fork
git clone https://github.com/<YOUR-USERNAME>/cookbook.git cd cookbook
-
Set up pre-commit hooks (required!)
pip install pre-commit pre-commit install
-
Create a new branch
git checkout -b <YOUR BRANCH NAME>
-
Make your changes
-
Test your changes
# Run security check manually (optional) pre-commit run detect-private-key --all-files -
Commit and push
git add . git commit -m "Your commit message" git push origin <YOUR BRANCH NAME>
-
Create a Pull Request
If you see this error when committing:
detect-private-key...........................................................Failed
- Remove any private keys, API keys, or sensitive information from your files
- Check files like
.env, config files, or any files containing credentials - Use environment variables or secure vaults for sensitive data instead
- Never commit private keys, API keys, passwords, or other sensitive information
- Use environment variables for configuration
- Keep sensitive data in
.envfiles and add them to.gitignore - Test your changes locally before creating a PR