GitHub connection is done in 3 simple steps:
Create add-on Settings Space using the Settings page.
On the same page, initiate GitHub connection flow (see image below).
Connect your account with the GitHub app and return to Confluence.
User needs to generate new access key. Go to Settings page and remove current key by clicking on “Disconnect gitHub GitHub Account“ button. Then re-connect as before. you will be granted new valid key.