automate GHES... like an animal
This is an experimental project. It is neither supported nor endorsed by GitHub. Use it at your own risk.
The Animal is a command-line tool with which you can automate GHES through its web UI.
This can be useful when you can't do the same thing through its API, or for testing.
- Create and return a classic PAT
- Create an organization
- Create a GitHub App
- Currently only works with GHES
- Currently does not work on GHEC
- Currently does not work on github.com
- Selenium Server
- Python 3.11.2
- Python packages listed in requirements.txt
brew install selenium-server
python3 -m venv venv
. ./venv/bin/activate
pip3 install -r requirements.txt
cp etc/example.toml etc/my-ghes-test.toml
vi etc/my-ghes-test.toml
Usage: animal [OPTIONS]
automate GHES... like an animal
Options:
--config-file PATH [required]
--url URL Overrides config file
--username USERNAME Overrides config file
--password PASSWORD Overrides config file
--debug
--create [classic-pat|github-app|org]
--help Show this message and exit.
./animal --config-file etc/my-ghes-test.toml --create classic-pat
./animal --config-file etc/my-ghes-test.toml --create github-app
./animal --config-file etc/my-ghes-test.toml --create org
./animal --config-file etc/my-ghes-test.toml --create classic-pat --debug
- 2022-02-26 - documentation improvements
- 2022-02-25 - documentation improvements
- 2022-02-25 - added: LICENSE.txt, SECURITY.md, SUPPORT.md, CODE_OF_CONDUCT.md
- 2022-02-23 - gracefully handling unexpected web pages
- 2022-02-23 - validating URLs before using them
- 2022-02-23 - gracefully erroring out when given incorrect username/password
- 2022-02-23 - added command line options: --url, --username, --password
- 2022-02-22 - documentation fixes
- 2022-02-21 - new option: --create org
- 2022-02-21 - renamed --get to --create
- 2022-02-20 - initial release
| Python | GHES |
|---|---|
| 3.11.2 | 3.7.6 |
| 3.11.2 | 3.8.0 |
| Python | GHES |
|---|---|
| 3.11.2 | 3.7.6 |
| 3.11.2 | 3.8.0 |
| Python | GHES |
|---|---|
| 3.11.2 | 3.8.0 |
We warmly welcome contributions to improve this project. Please see CONTRIBUTING for how to get involved.
If you need support using this project, have questions about it, or need to report security issues, please open up an issue in this repository.
The Animal is NOT supported by GitHub.
This project is licensed under the terms of the MIT open source license. Please refer to LICENSE for the full terms.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
The Animal is maintained by @mokshadharma