Connect to GitHub Cloud (github.com) ☁️
Public repositories
No configuration needed.
Private repositories
By default no configuration is required. Each user will have to authenticate with OAuth to GitHub to access the content. Therefore, each Confluence user also needs a GitHub account to see the private repositories.
Shared Authentication
Alternatively, shared authentication can be used. All Confluence users will share the same authentication to GitHub and therefore won’t need a GitHub account. Confluence users will see all content the authentication token has access to.
On GitHub.com, navigate to:
For a token associated with a user: User (Icon upper left) → Settings → Developer Settings → Personal Access Token → Fine-grained tokens.
For a token associated with an organization: User (Icon upper left) → Your organizations → Settings on the organization → Personal Access Token
Generate a new fine grained token
Choose the repositories you want to grant access to.
Configure the permissions for the token:
Contents: Read-Only
Pull requests: Read-Only
Issues: Read-Only
Note the expiration date. Be aware to update the token if it expires or remove the expiration date.
On Confluence, navigate to the Settings → Include GitHub
Switch the authentication method and save the token: