You can create own personal access token at 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 existed GitHub login and password you can convert it to token automatically with help of «Manage
additional GitHub actions»