An organisation administrator connects a Git host under Git hosts with Connect GitHub or Connect GitLab.com. Sentinel may ask for a two-factor code, depending on your security level. A dialog first lists the permissions the host will ask for. Choose Continue to GitHub (or Continue to GitLab.com) to leave Sentinel for the host, approve it there, and you return to the Connections page. A notice at the top says the connection worked or what went wrong.
- GitHub installs the Sentinel GitHub App. On GitHub, choose Only select repositories to limit it to the repositories you will update. The App asks for write access to repository contents and pull requests in that one approval, and the row shows Updates enabled. The person installing it must own the GitHub account or organisation the App goes on (an organisation owner, or the user for a personal account); a collaborator's installation is refused with a notice asking an owner to start the connection. If a row shows Read-only, the installation has not accepted write access yet: use the enable updates on GitHub link and accept it on GitHub. The badge then changes to Updates enabled.
- GitLab.com has a with updates (write access) tick box in the dialog. Without it the row shows Read-only and says to connect again with updates when you want them. This sign-in works as your own GitLab user, so it stops when you leave the group or lose access. If you sign in again and your GitLab user sees more projects than Sentinel can check at once, nothing is changed and a message asks you to connect with a group or project access token limited to the projects Sentinel updates. To connect with an access token instead, see Connecting GitLab.com with an access token below.
- We recommend one GitHub organisation or account for each Sentinel organisation. Sharing one is possible, with the limits below.
Dialogs that connect an account, save a key or ask for consent also show How we keep this secure (opens in a new tab). It opens the Patching security article and leaves the dialog as it was. The link shows only while the article is available to you.
The buttons are disabled, with an explanation, when your deployment has no GitHub App or GitLab application set up, and for members who are not administrators. Use an access token stays available when the GitLab application is not set up. Members who are not administrators do not see Git host rows or repository lists, so give your own customers a role that is not administrator.
Connecting GitLab.com with an access token. Next to Connect GitLab.com there is Use an access token. You make a token on GitLab.com and paste it into Sentinel, with no GitLab sign-in. Only organisation administrators see it. Connecting may ask for a two-factor code, depending on your security level. Three kinds of token work:
- Group access token (recommended). It works as a GitLab bot user, not a person, so it keeps working when people leave. It needs GitLab Premium or Ultimate.
- Project access token. Also a bot user, limited to one project. On GitLab.com it needs Premium or Ultimate.
- Personal access token. Works on any GitLab plan, including Free. Make it on an account used only for Sentinel, not a person's own account.
The form is headed "Connect GitLab.com with an access token" and shows the role and scope the token needs. Give the token only the one scope:
| Access | Role on GitLab | Scope |
|---|---|---|
| With updates | Maintainer | api |
| Read only | Developer | read_api |
Give the token an expiration date (up to one year). Then, in the form:
- Under Access, choose With updates (api) or Read only (read_api).
- Optionally type a Label (optional). Without one the connection is named after the GitLab user, followed by "(GitLab.com token)".
- Paste the token into Access token and select Connect. Cancel closes the form and saves nothing.
Sentinel checks the token with GitLab.com before saving it. The token is stored encrypted and never shown again. When it works, the page says "(label) connected. Choose its repositories on each site's Patching tab." The token can see only the projects its group, project or account can see. If the token is refused, nothing is saved and the form says why:
- "GitLab.com did not accept this token. Check that you copied all of it, that it is not revoked or expired, and that it has the api or read_api scope." or "GitLab.com says this token is revoked or expired." Copy the whole token again, or make a new one.
- "GitLab.com did not give this token an expiry date. Make a token with an expiration date."
- "This token does not have the api scope. Make a new token with the api scope and the Maintainer role." (or the
read_apiscope for read only). - "This token can write (api or write_repository scope). For read only, make a token with only the read_api scope, or choose With updates." A read-only connection must hold a token that cannot change your repositories.
- "This GitLab.com account is connected to another Sentinel organisation." Each GitLab user, including a group or project bot, can belong to one Sentinel organisation. Make a new token on another group or project.
- "GitLab.com did not answer. Nothing was saved; try again."
If the same GitLab user is already connected in your organisation with Connect GitLab.com, the token replaces that sign-in on the same row, and its sites keep their repositories.
A token connection on the row. The row shows Credential: with Group access token, Project access token or Personal access token, and Token expires: with the date (for example 2027-05-31). From 30 days before that date, an active row says "This GitLab.com token expires in (N) days. Make a new token with the same role and scope, then choose Replace token." On the last day it says "This GitLab.com token expires today.", and after that, until the hourly check marks the row in error, "This GitLab.com token has expired." A read-only token row says to replace the token with one that has the api scope and the Maintainer role when you want updates.
Replacing the token. Make a new token on the same group, project or account, with the same role and scope, then select Replace token on the row. The form is headed "Replace the GitLab.com token". It has Access and Access token, but no label. Select Replace token to save. Your sites keep their repositories, and a row in error goes back to working. A new group or project token of the same group or project is accepted, even though GitLab gives every new token its own bot user; GitLab's own Rotate button on the token works too. A token of another group, project or account is refused with "This token belongs to another GitLab group, project or account. Make the new token on the same group, project or account as the one it replaces." To move from read only to updates, replace the token with one that has the api scope and the Maintainer role, and choose With updates (api).
Expiry emails. 30 days and 7 days before the token expires, one email goes to the administrator who connected it, or, if they are no longer an administrator, to the first administrator who still gets it. It is the Git host connection email in your email choices. A token connected with less than 30 days left gets only the 7-day email. When the token expires (GitLab stops it at midnight UTC on that date), the row shows an error, "The GitLab.com access token expired on (date)", and updates and deployments stop for the sites that use it, as for a revoked token below. Replace token brings them back. A site comes back only when the new token reaches its project with at least the Developer role; the others stay repository disconnected. The same holds when you replace a token that still works: sites whose project the new token cannot reach are marked repository disconnected straight away. If GitLab.com cannot list the projects, or the token sees more projects than Sentinel can check at once, nothing is saved and the form says why.
For step-by-step instructions on making each kind of token on GitLab.com, see the knowledge base article "Connect GitLab.com with an access token". Find it in the knowledge base at /app/support/knowledge-base, where the knowledge base is available to you. The form links to it as How to make the token (opens in a new tab) while it is available.
Sharing a GitHub account between organisations. GitHub allows one App installation per account, so a second Sentinel organisation shares the first one's. We recommend avoiding this: every organisation depends on one installation, so uninstalling or suspending it on GitHub disconnects all of them, and GitHub owners and administrators of the first organisation can still reach the account's repositories. Clause 4.3 of the Terms of Service makes this your decision. To share, you must own the GitHub account and administer both organisations. In the second organisation choose Connect GitHub, then Use an account that already has the App in the dialog. Do not use Continue to GitHub for an account that already has the App: GitHub stops at that account's settings page and does not return to Sentinel. Use an account that already has the App sends you to a GitHub sign-in. When you return to Connections, a panel says Choose the GitHub account to connect to and the organisation's name. It lists the GitHub accounts you own that have the App. An account that another organisation already holds is marked "Connected to another organisation, so it will be shared". Select Connect on the account you want (this may ask for a two-factor code, depending on your security level). The panel then says GitHub is connected. The sign-in lasts ten minutes and only works for the person who started it; if it has run out, or someone else opens the link, the panel says "This GitHub sign-in has expired or belongs to someone else. Start the connection again." Start again from Connect GitHub. If you do not own the account, or do not administer both organisations, the connection is refused with the notices described below. The row shows a Shared badge and starts with no repositories. Choose Choose repositories, tick the ones this organisation may use, accept the risk and choose Save repositories. That organisation then sees only those repositories. A repository belongs to one organisation, so one already in use shows Used by another organisation. A deleted site no longer holds its repository once its last update has finished, but an open pull request still holds it, and so does a shared row that has it among its chosen repositories until it is unticked there. You can also share a repository from the enrolment wizard's Repository step. If you administer both organisations, the step lists every repository on the GitHub account, with a note above the list that it is shared. A repository not shared with this organisation yet is marked Not shared yet. Choose it, tick that you accept the risk, then choose Share and choose (this may ask for a two-factor code, depending on your security level). It is shared with this organisation and checked for the site in one go. A repository another organisation or site already uses shows In use. Refresh list asks GitHub again, so a repository you just added to the App on GitHub appears too. Someone who administers only this organisation sees just the repositories shared with it, and the note tells them to ask someone who administers both. Taking a repository away removes it from its sites, stops tracking their open pull requests and stops any running update. Removing a shared connection leaves the App installed until the last organisation removes it, and the organisation that connected first must remove its connection last. Someone who does not administer both organisations sees "This GitHub account is connected to another Sentinel organisation." GitLab.com accounts cannot be shared.
If the host stops accepting a connection (the App is uninstalled or suspended, the GitLab sign-in is revoked, or a GitLab access token is revoked or expires), the row shows an error. Sites using it are marked repository disconnected until it is connected again; their configuration is kept. One email goes to an organisation administrator when this happens.
Choosing a repository. The picker is the same on the enrolment Repository step and on a site's Patching tab, and organisation administrators choose (the list needs the Patching configure permission, as before). Each repository can belong to one site, across every Sentinel organisation. A repository another site uses is greyed out with no Choose button. It says Used by (site name), a link to that site's Patching tab, when that site is in your organisation, or Used in another Sentinel organisation (the site is never named). A site of your organisation whose client is archived or inactive shows Used by another site. An archived repository is greyed out too: "Archived on the host. Unarchive it to use it." Your site's own repository shows Current and Check again. Sites that already shared one repository keep working until one of them changes its repository, and deleting a site frees its repository for another. If a deleted site is restored after another site took its repository, the restored site has to choose a repository again.
Refresh list sits next to the search box. Sentinel asks the Git host at most once every 15 seconds for each connection; otherwise it shows the cached list. If the Git host cannot be reached, a red message says so and that the list below may be out of date.
Can't find your repository? This panel stays under the list while you pick. Sentinel can only list repositories it has been given access to, so a private repository that is missing must be added on the Git host first.
- GitHub. Select Add a repository on GitHub. It opens the Sentinel App's installation settings on GitHub in a new tab, and the panel changes to Waiting for you to finish on GitHub with three steps: under Repository access choose Only select repositories and add the repository, select Save, then come back. After you save, GitHub may show a Sentinel page in that tab that says "Saved on GitHub". Close that tab and go back to the enrolment. Open GitHub again, I'm done, refresh now and Stop waiting are there if you need them. Only a GitHub owner can change the App's repositories, so if that is not you, use Copy link and send the link to an owner. The list refreshes when you return to the tab and every few seconds for up to 2 minutes. If nothing new has arrived the panel says "No new repository yet. Did you click Save on GitHub?" Repositories that appear are placed at the top with Just added, and a note says "1 new repository found".
- GitLab. Select Add a project on GitLab. Add the GitLab user that connected Sentinel to the project (or its group), then come back and refresh. For a connection with updates, give it the Maintainer role: Sentinel needs it to add webhooks and merge into a protected branch. The Developer role is enough only for a read-only connection. This applies to a Connect GitLab.com sign-in and to a personal access token. A group or project access token sees only its own group or project, so for a project outside it, make a token there.
- Another account (enrolment only). On the enrolment Repository step the panel also offers It's in another GitHub account and Connect GitLab.com, which start the connect flow. Afterwards you land back on the enrolment Repository step, not Patching settings, with the new account picked and your draft kept.
- Another host. Code on Bitbucket or somewhere else? Ask us to support it opens the integration request form.
Only GitHub.com and GitLab.com are supported. For GitHub Enterprise Server, self-managed GitLab, Bitbucket, Azure DevOps or a plain Git remote, select My repository is not listed under Git hosts (or on a site's Patching tab). It opens a form at Patching requests, and Which hosts are supported? explains the list. Started from a site's Patching tab, the form already has that site selected; otherwise choose the site the request is about. The form says: "We support GitHub.com and GitLab.com. Describe your repository host and we will evaluate whether we can add it. A typical evaluation takes one week; we will reply on this ticket."
It asks for the repository host (GitHub Enterprise Server, Self-managed GitLab, Bitbucket, Azure DevOps or Another host), the host URL, your organisation or group name, whether the host is reachable from the internet, the CI system you use and the number of sites. Choosing a host Sentinel knows but does not support yet shows a Known limitation note explaining why, so you learn it at once. Do not put tokens or query strings in a URL; the form refuses them.
Sending the form creates a ticket (SNTL-n) in your Support, with your answers on it, and our staff reply there. Sentinel keeps the URL on the ticket only; it is never used as configuration. If you send the same form again for the same site while your ticket is still open, your answers are added to it as a reply (sending identical answers adds nothing) (and the ticket is reopened if it was waiting on you or resolved) instead of a second ticket. Once the ticket is closed, a new request opens a new ticket. Any member of the site's organisation, member or administrator, can send a request. The forms are available only when Patching is enabled for your organisation and Support is available.
Connecting a hosting platform
An organisation administrator can connect these under Hosting platforms, using an API token:
- Platform.sh (Upsun Fixed and Upsun): the form asks for the token only. Use a token from a dedicated user for Sentinel, not a person's own account. Give that user the Viewer organisation permission and access to only the projects you will map. Give it Contributor on the production environment if you want a backup taken before each deploy. Admin is not needed.
- Quant Cloud: the form asks for your Quant organisation machine name (as in the dashboard address) and an organisation API token that can read environments, change environment state and create backups. Add one connection per Quant organisation.
- Lagoon appears only if your deployment has switched on its preview setting.
Choose Connect for the platform, enter a label and the details, and select Connect. Sentinel checks the token with the platform before saving it. A token the platform rejects is not saved, and the message says so. The token is stored securely, write-only, and never shown again. When it works, the page lists the environments the token can see, by name and identifier only. Nothing is stored about them until a site maps one. Members see the list but not the controls.
To replace a token, rotate it through the API (POST /patching/hosting/connections/{id}/rotate); site mappings are kept. Remove revokes the token and is refused while a site uses the connection. If the platform later rejects the token, the connection shows an error and every site mapped to it leaves ready until you rotate the token.
If your platform is not offered, select My platform is not listed. It opens a form at Patching requests (site preselected when you start from a site's Patching tab, otherwise choose the site). The form says: "Integration with your platform is free of charge if you work with us to test it. Tell us about your account and we will propose the steps on this ticket."
It asks for the platform (Pantheon, Acquia Cloud, Shared hosting without an API or Another platform, with a platform name for Another platform), account type, subscription level, region, whether the platform has an API or CLI (and optionally a link to its API documentation), what triggers deployments (a git push, an action in the platform dashboard, the CI pipeline or not sure) and the number of sites. A known platform that is not supported yet shows a Known limitation note. Sending, ticket reuse, URL handling and who can send work as described under Connecting a Git host.
