You can create your own personal access token in your account GitHub settings.
Token should be registered with scopes:
- admin:repo_hook - for managing hooks (read, write and delete old ones)
- repo - to see private repos
- repo:status - to manipulate commit statuses
In Jenkins create credentials as «Secret Text», provided by
Plain Credentials Plugin
WARN! Creds are filtered on changing custom GitHub url
If you have an existing GitHub login and password you can convert it to a token automatically with help of «Manage
additional GitHub actions»