pxgamer / github-deploy-key
A CLI to generate and add Github SSH deploy keys to repos.
Fund package maintenance!
owenvoke
ecologi.com/owenvoke?gift-trees
Requires
- php: ^7.2
- guzzlehttp/guzzle: ^6.3
- symfony/console: ^4.0
- symfony/process: ^4.0
Requires (Dev)
- humbug/box: ^3.2
- phpunit/phpunit: ^7.0 || ^8.0
- squizlabs/php_codesniffer: ^3.0
README
A CLI to generate and add Github SSH deploy keys to repos.
Note: Use the
gh repo deploy-key
command instead.
Install
Via Composer
$ composer require pxgamer/github-deploy-key
Usage
When installing through Composer globally, it should include the gdk
binary in your path.
Adding a new deploy key:
gdk add [-t|--token [TOKEN]] [--] <repositories> (<repositories>)
~/$ gdk add -t d3v3l0p3r1234567890abcdefghijklmnopqrstu pxgamer/github-deploy-key
Deploy keys added successfully to the following repositories:
-------------------------------------------------------------
-----BEGIN RSA PRIVATE KEY-----
MIIJKQIBAAKCAg...
-----END RSA PRIVATE KEY-----
Private key for: pxgamer/github-deploy-key
Public key added to: https://github.com/pxgamer/github-deploy-key/settings/keys
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email security@pxgamer.xyz instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.