-
Never commit
git_credentials.jsonto version control- Add it to your
.gitignorefile - Use
git_credentials.example.jsonas a template
- Add it to your
-
Protect your SSH key files
- Store keys in a secure location
- Use appropriate file permissions
- Use passphrases on your keys
-
Use separate keys for different services
- Don't reuse the same SSH key across multiple services
- Use deployment-specific keys with limited permissions
-
Post-Checkout Script Security
- Review post-checkout scripts before execution
- Ensure scripts are version controlled within repositories
- Use
-DisablePostCheckoutScriptsin untrusted environments - Monitor script execution logs for security events