How the Rocket.Chat GitHub app connects chat to repositories
Engineers want repository activity and review actions inside the team chat they already use, without switching to a browser tab for every issue or pull request. The Rocket.Chat GitHub app supports this by authenticating through a GitHub OAuth app whose client ID and client secret you enter in the app settings. That OAuth app is the identity the integration uses to act on repositories, so it is the first thing to create and the first thing to review when access questions come up.
Once connected, the app lets users search and share issues and pull requests in rooms, subscribe rooms to repository events, create issues, and review and merge pull requests. Each of these actions depends on what the OAuth app is permitted to do on the repositories it can see, so decide which organizations and repositories it should reach before you enable it. The Rocket.Chat Marketplace compatibility table lists the GitHub app as available on Community workspaces, but confirm current behavior, plan requirements and supported actions in the app documentation for your Rocket.Chat version before you commit to a rollout.
Plan the OAuth app ownership as part of the setup, not as an afterthought. A client secret that sits under one personal account will break when that person leaves, and a broad set of repository permissions turns every chat user into a potential reviewer or merger with more reach than intended. Record who owns the OAuth app, which repositories it covers, and who can approve merges from chat. Check whether merge and review actions in chat respect the repository protections you already rely on, such as required reviews and branch rules, by testing them on a non-production repository first.
What you need before connecting GitHub to Rocket.Chat
The GitHub app depends on four things lining up: a Rocket.Chat workspace that can run Marketplace apps, a GitHub OAuth app registered with the right rights, an administrator who can install and configure the app, and a public address that GitHub can send the user back to. Check the GitHub organization policy first, because it can stop the OAuth app from being created at all.
Confirm the workspace and plan
Marketplace apps run on the workspace you install into, so confirm that your workspace type is supported before planning anything else. Rocket.Chat's Marketplace compatibility table lists the GitHub app as available on Community workspaces. Check the current compatibility entry for your exact version and plan, since support can change between release lines. Also confirm that the workspace is running a supported version, because unsupported versions lose cloud-linked features such as Marketplace.
Marketplace docsCheck GitHub organization OAuth policy
Before anyone registers an OAuth app, check whether the GitHub organization restricts third-party OAuth app access. Organization owners can limit which apps members may authorize, and some organizations require an owner to approve each app. If the policy blocks registration or approval, the work stalls until an owner acts. Ask the organization owner to confirm the policy in writing, and agree who will approve the Rocket.Chat app.
Register the GitHub OAuth app
The OAuth app should be registered by someone with admin rights on the repositories the workspace will reach, or with rights the organization has delegated for this purpose. The client ID and client secret it generates are entered into the Rocket.Chat GitHub app settings. Record which GitHub account owns the registration, store the secret in your normal secrets process, and plan how it will be rotated when staff change roles.
GitHub app docsPrepare a Rocket.Chat administrator
Installing the app and entering OAuth credentials requires an administrator account on the workspace. Use a named administrator rather than a shared login so that changes to the app settings can be traced. Confirm that this administrator can reach the Marketplace and the app's settings page, and that the same person or a second named administrator can take over when the first leaves the team.
Set the public URL and callback
The OAuth flow sends the user to GitHub and returns them to a callback address on your Rocket.Chat server. That address must match the Site URL that Rocket.Chat uses, be reachable from the internet over HTTPS, and be entered exactly in the GitHub OAuth app. A mismatch between the registered callback and the live address is the most common reason the login step fails. If the server sits behind a reverse proxy, confirm the external hostname and not the internal one.
Decide which repositories the app should see
The app acts with the permissions of the user who authorizes it, so the repositories it can search, subscribe to, or act on depend on that person's GitHub access. Decide in advance which team members will connect their accounts and which repositories are in scope. Confirm that repository visibility rules and any private repository restrictions in the organization allow this, so that search results and room subscriptions behave as expected.
Configuring the GitHub OAuth app and the Rocket.Chat app
This sequence connects a GitHub OAuth app to the Rocket.Chat GitHub app so that a test user can search repositories and a test room receives repository events. Each step ends with a check you can see before moving on to wider rollout.
Register the GitHub OAuth app
In GitHub, register a new OAuth app under your organization or personal account settings. Set the homepage URL and authorization callback URL to the values the Rocket.Chat GitHub app documentation specifies for your workspace address. Save the app, then record its client ID and generate a client secret. Store the secret in your password manager or secrets store, because GitHub shows it only once. Check: the OAuth app appears in your GitHub developer settings with a client ID and a stored secret.
Install the GitHub app from the Marketplace
As a workspace administrator, open the Rocket.Chat Marketplace and install the GitHub app. Confirm that your workspace edition is listed as supported in the Marketplace compatibility table before you start, since the table is the authoritative source for which workspace types can run the app. Check: the GitHub app shows as installed in the administration area of your workspace and its settings page opens without error.
Enter the client ID and secret in app settings
Open the GitHub app settings in the administration area and paste the client ID and client secret from the OAuth app. Save the settings. Keep the secret out of shared channels and screenshots. If the settings page reports an error on save, recheck that the values were copied completely, with no leading or trailing spaces. Check: the settings save successfully and the app offers a sign-in or authorization action to users.
Authorize a test user
Sign in to Rocket.Chat as a dedicated test user, not an administrator account, and start the GitHub authorization flow from the app. Approve the OAuth request on GitHub using an account that has access to the test repository. Return to Rocket.Chat and confirm the authorization completed. Check: the test user can run a search for an issue or pull request in the test repository and receives a result in the message composer or response.
Search for an issue or pull request
As the test user, run a search for a known open issue or pull request in the test repository. Compare the result with what you see in GitHub for the same account. If the result is missing or belongs to a different repository, check that the authorized GitHub account has access to that repository and that the correct OAuth app is configured. Check: the returned item matches the title, number and state shown in GitHub, and sharing it into a room posts a preview.
Subscribe a test room to one repository
Create a private test room and use the GitHub app command to subscribe it to a single repository, choosing only the event types you need for the test. Keep the first subscription narrow so that results are easy to verify. Check: after a repository event occurs, such as a comment on a test issue, a message for that event appears in the test room.
Create a test issue and confirm it in GitHub
From the test room, create an issue through the GitHub app using the test user's authorization. Include a clear title that marks it as a test so it can be closed later. Open the repository in GitHub and confirm the issue exists, has the expected title and body, and is attributed to the authorized account. Check: the issue is visible in GitHub, and the subscription posts an event for it in the test room. Close the test issue once the check passes.
Which GitHub actions map to which chat actions
This table maps each GitHub object and event to the Rocket.Chat room, user identity and permission that controls it. Read each row as a question: where does the item appear, whose GitHub authorization applies, and what must you confirm in your own environment before rollout.
| GitHub object or event | Where it appears in Rocket.Chat | Whose authorization applies | What to confirm before rollout |
|---|---|---|---|
| Issue search and link sharing | Shared as a message or preview in the room where a user posts the link or runs a search | The chat user's own GitHub authorization through the OAuth app | Users see only what their GitHub account can read; test with a private repository and a user who lacks access |
| Pull request search and link sharing | Shared as a message or preview in the room where the user posts it | The chat user's own GitHub authorization | Confirm the preview content for private pull requests and whether it is visible to other room members |
| Repository event subscriptions | Events delivered to the room the user subscribes to the repository from | The subscribing user's GitHub authorization, with the repository access that user holds | Confirm which event types the app delivers and whether subscriptions are tied to the subscriber or the room |
| Issue creation from chat | A new GitHub issue is created, and the app posts a reference in the room | The chat user's GitHub identity, so the issue author is that user | Confirm that the GitHub account needs write access to the repository and how the author is recorded |
| Pull request review actions | Review actions are run from chat and the result appears in the room | The chat user's GitHub identity; GitHub branch protection and review rules still apply | Confirm which review states the app supports and whether required reviewers are enforced by GitHub |
| Pull request merge actions | Merge is requested from chat and the outcome is posted to the room | The chat user's GitHub identity; merge requires permission in GitHub | Check branch protection, required checks and approval rules in GitHub, since the chat app cannot bypass them |
| OAuth app client ID and secret | Entered in the app settings in the Rocket.Chat administration area, not in a room | The Rocket.Chat administrator who configures the app and the GitHub OAuth app owner | Confirm where the secret is stored, who can read it and how it is rotated |
Choosing repository scope and room subscriptions
The Rocket.Chat GitHub app authenticates through a GitHub OAuth app that you register yourself. You enter its client ID and secret in the app settings. The access that OAuth app is granted determines what the Rocket.Chat app can read and act on, so the breadth decision happens when you register it, and Rocket.Chat inherits that decision. A single organization-wide grant is simpler to operate, but anyone who connects through it works within the same reach, and the app can surface everything the grant covers.
- Owner of the OAuth app: Name one team to own the registration, the client secret and changes to its settings.
- Organization-wide reach: Suits a team that tracks many repositories, but every connected user shares the same visible scope.
- Per-user authorization: Confirm whether each person authorizes with their own GitHub identity, so visible items follow that person's GitHub permissions.
- Secret handling: Store the client secret in your approved secrets process and rotate it when administrators change.
- Scope review: Compare the permissions the OAuth app requests with the GitHub app documentation before you approve it.
Record the chosen scope in your security review, including who approved it and when it was last checked.
Subscribing to a short, named list of repositories limits what reaches Rocket.Chat rooms. This suits code for regulated systems, unreleased products or teams that only need a few projects. The trade-off is maintenance: someone must add repositories as new projects start and remove them when work ends. A narrow list also keeps the room purpose clear, because members can see why each repository is there.
- Start from ownership: Subscribe each room to the repositories its members maintain, not to the whole organization.
- Archived repositories and forks: Decide whether they belong in any room, and confirm how the app handles them in your version.
- Renames and transfers: Review subscriptions after a repository is renamed or moved, since its events may stop arriving until it is reconfigured. Confirm this behavior with the app documentation.
- Named owner per list: Assign one person to each subscription list and to its review schedule.
- Expansion rules: Write down who may add a repository and what justification they need.
Confirm that every subscribed repository has a documented owner and a current reason to appear in its room.
Room visibility controls who can read repository events once they are posted. A public room is visible to workspace members who can find and join it, while a private room is visible only to its invited members. Because repository events can reveal feature names, review comments or security fixes before disclosure, the room type matters as much as the subscription itself. Event text, not only the repository name, can carry sensitive information.
- Public rooms widen visibility: Anyone who can join can read issue titles, pull request names and review activity posted there.
- Private rooms narrow the audience: Membership is controlled, which suits repositories with unreleased work or pending security fixes.
- Event text can leak detail: A single pull request title can reveal a feature or vulnerability, so review what the events contain.
- History persists: Messages stay according to your retention settings, so an exposure may remain in history. Confirm your retention configuration.
- Membership drift: A private room becomes broader when people are added over time, so membership needs periodic review.
Before you subscribe a room, confirm its visibility, its member list and its retention settings.
Subscribing a room to repository events is a configuration action, so the decision includes who holds the permission to create and change subscriptions. Rocket.Chat controls this through roles and permissions, and exact permission names can vary by version, so confirm them in your workspace. Restricting subscriptions to administrators gives one review point but can slow down teams that change projects often. Allowing every member to subscribe rooms spreads control and makes accidental exposure more likely.
- Administrator-only control: Gives one place to review every subscription, at the cost of a queue for requests.
- Delegated team owners: Let named leads subscribe their own rooms after a documented approval step.
- Role audit: List which roles hold the integration-management permission today, and who holds those roles.
- Removal path: Record how a subscription is removed when a project ends or a repository is archived.
- Offboarding: Include subscription ownership in the process for people who change teams or leave.
Check which roles can manage integrations in your workspace, and confirm that each subscribing person is someone the room's members would expect to make that decision.
Securing the OAuth client and repository access
The GitHub app acts with the permissions of the OAuth client and the GitHub accounts behind it, so Rocket.Chat roles alone do not limit what it can reach. These cards cover the controls that connect chat administration to GitHub permissions.
Protect the client secret in app settings
The client secret entered in the app settings lets the app authenticate as your OAuth application. Anyone who can read it can impersonate the app against GitHub. Restrict the Rocket.Chat administrator role to a small group, keep the secret out of shared runbooks and chat messages, and confirm that GitHub shows the OAuth app owner as an account your organization controls rather than a personal account.
GitHub app docsLimit who can edit app settings
Changing the client ID or secret, or the app's configuration, changes which GitHub identity Rocket.Chat trusts. Assign settings changes to named administrators and review that list whenever the workspace team changes. Ask whether your Rocket.Chat roles let you separate app management from general workspace administration, and record who holds each role.
Restrict merge rights to the people who need them
Reviewing and merging pull requests from chat uses the GitHub account that authorized the app for each user, so the repository's own rules decide what a user can merge. Check branch protection rules, required reviewers and merge permissions in GitHub, not only in Rocket.Chat. A user who can see a pull request in chat should not gain merge rights through the app that they lack in GitHub.
Review which rooms receive repository events
Subscriptions send repository events into rooms, and anyone in a room can read them. Pull request titles, issue text and branch names may reveal unreleased work or security fixes. Review subscriptions for each repository, remove subscriptions to rooms with broad membership, and confirm that private repositories are not posted to public channels.
Rotate the secret when staff leave
When someone who created or administered the OAuth app leaves, rotate the client secret in GitHub and update the app settings in Rocket.Chat. Also remove that person from GitHub organization roles and revoke their authorizations for the app. Confirm the rotation by testing a search and a subscription afterward, because the old secret will stop working once it is replaced.
Review user authorizations in GitHub
Each user who connects their GitHub account authorizes the app with their own permissions. Periodically review the authorized applications in GitHub for your organization, and remove grants from accounts that are no longer active or no longer need access. Ask GitHub administrators whether organization policies restrict OAuth app access, since those policies can block the app even when Rocket.Chat is configured correctly.
How a repository event reaches a room and an action returns to GitHub
The flow starts when a user authorizes the Rocket.Chat GitHub app through a GitHub OAuth app whose client ID and secret are entered in the app settings. Rocket.Chat stores that authorization, then repository events from GitHub reach the rooms the user subscribed. When a reviewer approves or merges from chat, the request goes back to GitHub under that user's own permissions, not a shared bot account. Check the boundary at each hand-off: who holds the OAuth secret, which room receives each event, and whose permissions an action runs under.
Authorization, event delivery and user-scoped actions across the Rocket.Chat, OAuth and GitHub boundaries.
Why the GitHub app fails to authorize or post events
This table pairs each common failure of the Rocket.Chat GitHub app with its likely cause and the check to run first. Work down the rows in order, since authorization problems hide event problems and a missing room subscription can look like a broken app. Most failures trace back to the OAuth app settings, the account that authorized the app, or the room that should receive events.
| Symptom | Likely cause | Check to run |
|---|---|---|
| Authorization fails at the GitHub sign-in step | The client ID or client secret entered in the app settings does not match the GitHub OAuth app | Copy the client ID and generate a new secret in the GitHub OAuth app, then paste both into the Rocket.Chat GitHub app settings and retry |
| GitHub returns a redirect or callback error | The callback URL registered in the GitHub OAuth app does not match your Rocket.Chat site URL, including protocol and port | Compare the callback URL in the GitHub OAuth app with your workspace's public URL and correct whichever one is wrong |
| A user can sign in but cannot search or share a repository item | The authorizing user has no access to that repository on GitHub, so the app cannot return its issues or pull requests | Ask the user to open the repository on GitHub, then confirm the account they linked is the one with read access |
| Repository events never appear in a room | The room was never subscribed to the repository, or the subscription was created by a user who has since left | Open the room, confirm a subscription exists for the repository and event types, and re-create it from an active admin or member account |
| Events arrive for some repositories but not others | The subscription covers a different repository, or the authorizing account lacks access to the missing one | List each subscription by repository name and compare it with the repositories your team expects to see |
| The app does not appear or cannot be enabled | The workspace edition does not support the app, since the Marketplace compatibility table lists it for Community workspaces | Check your workspace edition and the app's compatibility entry in the Marketplace before troubleshooting settings |
| Create, review or merge actions fail after sign-in works | The GitHub account lacks write or review permission on the repository, or branch protection rules block the action | Verify the account's role on the repository in GitHub and review any branch protection rules that apply to the target branch |
Keeping the GitHub app working after the first setup
The GitHub app needs ongoing attention because it is tied to the Rocket.Chat version you run, so the first working setup is not the end of the job. After each Rocket.Chat upgrade, re-test the full path: searching an issue, sharing a pull request into a room, subscribing a room to repository events, creating an issue from chat, and reviewing or merging a pull request. Confirm that the GitHub OAuth app still holds the client ID and secret you entered, that the redirect URL matches the public address of the workspace after any domain or proxy change, and that the app version installed on your workspace is one the Marketplace lists as compatible with your release. Record the results so the next upgrade has a baseline to compare against.
Subscriptions drift as projects change. A room subscribed to a repository for one release may now receive noise from archived repositories, renamed projects or teams that have moved on. Review each subscription on a set schedule, confirm which event types each room should receive, and remove subscriptions tied to repositories that no longer matter. Write down who owns each subscription so that someone is accountable when a room is quiet or a notification is wrong. Ask the people who created the subscriptions to confirm they still need them before you remove anything.
Users who leave the organization need a clear offboarding step. The GitHub connection is tied to an individual's GitHub account authorization, so a departing person's actions, such as creating issues or merging pull requests from chat, should stop when their account is disabled. Confirm with your identity team whether removing a user from Rocket.Chat and from your identity provider also revokes the GitHub authorization for that person, and check which rooms their subscriptions or shared links still appear in. Finally, plan for support lifecycle: Rocket.Chat says unsupported versions stop receiving security fixes and lose Marketplace services, which would stop the app from working as intended. Confirm the end-of-life date for your current line in the version durability documentation and schedule upgrades before it arrives.
Questions teams ask before connecting GitHub to Rocket.Chat
How much effort does connecting the GitHub app to Rocket.Chat take?
The effort depends less on the Rocket.Chat side than on how many repositories you connect and how carefully you decide what each room should receive. Setup has two parts: creating a GitHub OAuth app and entering its client ID and secret in the app settings, then choosing which repositories, event types and rooms the integration covers. A team with a handful of repositories and one or two channels can finish this in a single working session. Large organizations with many repositories, many teams and strict review rules need more planning time, because each repository subscription is a decision about who sees its activity. Confirm the exact steps against the current app documentation for your Rocket.Chat version.
What drives the effort up or down?
Four factors move the effort most. The first is the number of repositories and the event types you subscribe to, since pull request and issue traffic grows quickly across busy projects. The second is your identity model: whether GitHub users map cleanly to Rocket.Chat users, and whether the people who authorize the app are the ones who should own it. The third is permission review, meaning which members can create issues, review pull requests and merge from chat. The fourth is private or internal repositories, which need extra care about who can search and share their content in Rocket.Chat rooms. Ask for each of these to be written into the scope before work starts.
Can a team connect GitHub to Rocket.Chat by itself?
Yes, a team with administrator access to both GitHub and Rocket.Chat can complete the basic connection from the documentation. The harder questions are about governance: which repositories belong in chat, who can merge a pull request from a message, and how the OAuth app is owned and rotated. Teams without an owner for those decisions usually end up with broader access than they intended. If your team can answer those questions and test the result with a non-production repository first, doing it internally is a reasonable choice. If they cannot, an outside review of the design before rollout is often the cheaper path.
What access does the work need from GitHub and Rocket.Chat administrators?
The work needs several specific permissions on each side. On GitHub, someone must be able to register an OAuth app and approve or review the organization access it requests, and the repository owners must agree to what is shared. On Rocket.Chat, an administrator must install the GitHub app from the Marketplace, enter the OAuth client ID and secret, and decide which rooms receive subscriptions. Store the client secret in a managed location and limit who can view it. Confirm with your GitHub organization owner whether third-party app approval is enabled, since that setting determines whether the OAuth app can be used at all.
Does connecting GitHub to Rocket.Chat require a paid plan?
The GitHub app is listed as available on Community workspaces in Rocket.Chat's Marketplace compatibility table, so a free workspace can run it. That does not make every related control free. Rocket.Chat's free Community workspace allows up to 100 concurrent users with core messaging, while features such as LDAP and SAML user group mapping and tamper-evident audit trails are listed on paid plans. If your review requires group-based access or audit evidence around who shared repository content, check those requirements against the Rocket.Chat plans documentation before you commit to a design.
When is outside help worth it for a GitHub integration?
Outside help is worth considering when the integration touches regulated data, many repositories, or an identity model that is hard to map. A typical case is a security team that needs a written permissions model, an audit trail of who acted from chat, and a test that confirms private repositories stay out of the wrong rooms. DeployOpen can plan the integration, configure it in your environment, and test the permission boundaries, with the scope and deliverables agreed in writing before work starts. It does not issue audit reports or certifications, so independent assessors remain responsible for those decisions.
What should a team test after the GitHub app is connected?
Test with a non-production repository, a private repository and a user without write access. Confirm that search and sharing return only what each user is allowed to see, that subscribed rooms receive only the events you chose, and that issue creation and pull request review or merge actions fail for users who should not have them. Also check what happens when the OAuth app secret is rotated and whether removing a Rocket.Chat user revokes their GitHub-linked access. Record the results so the next Rocket.Chat upgrade can be retested against the same checklist.
What DeployOpen confirms in a written scope
DeployOpen fixes the GitHub app scope in writing before any work starts. The written scope names the GitHub repositories in play, the Rocket.Chat rooms that will receive issue and pull request activity, the roles that may search, share, create issues or review and merge pull requests, and the test plan that proves each path works. Naming repositories and rooms in advance matters because the app subscribes rooms to repository events, so a loose scope can post more traffic into a room than its members expect. Each permission decision is recorded so your security team can review it before anything is connected.
The scope also lists what you must provide. For this integration that normally includes GitHub organization admin access to register the OAuth app and approve its access to the chosen repositories, plus Rocket.Chat administrator access to install the app from the Marketplace and enter the GitHub client ID and secret in its settings. Confirm who holds those accounts, whether your GitHub organization restricts third-party OAuth apps, and who will own the client secret after handover. Ask DeployOpen to state these dependencies as preconditions so a missing approval does not stall the test phase.
A quote follows from the written scope. The cost drivers are the number of repositories and rooms, how many distinct permission roles need testing, and whether review and merge actions are enabled, since those carry more risk than search and sharing. Ask for the quote to separate one-time setup and testing from any recurring support, and confirm whether retesting after a Rocket.Chat or app upgrade is included. Check the Marketplace compatibility for your workspace type with the Rocket.Chat Marketplace documentation before you finalize the scope.
How DeployOpen works on this
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, including the Rocket.Chat GitHub app and the GitHub OAuth app it depends on. We agree the scope in writing first, build and test the integration in your environment, and hand over the configuration and runbook your team needs to operate it.
How we scope
- Confirm which repositories, event types and users the GitHub app will cover in your workspace
- Decide who may create issues, review pull requests and merge, and map those roles to Rocket.Chat rooms
- Agree in writing whether the work includes the GitHub OAuth app registration, the callback URL and client secret handling
How we build
- Register the GitHub OAuth app and enter its client ID and secret in the Rocket.Chat GitHub app settings
- Configure repository subscriptions and room routing so events reach the right channels without flooding them
- Test search, sharing, issue creation and pull request review with test accounts before any user rollout
How we hand over
- Document the OAuth app settings, subscribed repositories, room assignments and permission decisions
- Provide a short runbook covering secret rotation, adding repositories and removing access for leavers
- Walk your administrators through the configuration so your team can make routine changes afterward
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts
- Ongoing support, upgrades and continuous testing are available as a retainer
- Ask your Rocket.Chat version and Marketplace compatibility for the GitHub app at the start, since app support depends on workspace type

