Connect GitHub
This workflow applies when GITHUB_AUTH_MODE is delegated or hybrid.
-
Run
/knowledge connect. -
Open the returned short-lived authorization link. The service validates its signed random state before redirecting to GitHub.
-
Authorize the GitHub App. The callback consumes the state once, exchanges the code, encrypts the access and refresh tokens, and binds them to your Slack user ID.
-
Close the success page. Slack also receives an ephemeral confirmation when its response URL remains valid.
-
Run
/knowledge statusto see the connected GitHub login.
Run /knowledge disconnect to revoke the stored binding and attempt token revocation. Tokens are never displayed in Slack. A missing configuration produces “GitHub authorization is not configured”; expired or reused state produces “Invalid or expired OAuth state.” Repository permission and allowlisting are checked separately when publishing. See GitHub authorization.