Protects code from being push to unexpected git repos.
git_push prevents code from leaking:
- Toyota dev left key to customer info on public GitHub page for five years
- GitHub’s source code was leaked on GitHub last night… sort of
- Nissan source code leaked online after Git repo misconfiguration
Add gem to your Gemfile
gem "git_push"
Update the .git_config_config (see example)
allowed_origin: https://gitlab.com/KevinColemanInc/test-ruby-git.git
delete_code: true
https://github.com/KevinColemanInc/test-ruby-git
$ git clone https://github.com/KevinColemanInc/test-ruby-git
$ bundle install
$ touch b.md
$ git -am commit "test"
$ git push origin main
$ ls
After this is run, b/c the host does not match the allowed domain, the code is instantly deleted.
Not yet. Leave an Issue for the langauge you want to support. I have plans to add javascript, python,
Yes, sorta. This will work for iOS apps that use the ruby toolchain (like fastlane or cocoapods)
Yes, sorta. This will work for Android apps that use the ruby toolchain (like fastlane)