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.
WARNING! Credentials 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 the help of «Manage
additional GitHub actions».