CircleCI adds CI/CD support for GitHub Enterprise Server, Forgejo, and Codeberg
Director of Product Management
Today, we’re introducing GitHub Enterprise Server and Forgejo integrations for CircleCI Cloud, both available in open beta. Teams using GitHub Enterprise Server or Forgejo (including Codeberg) can now use CircleCI to accelerate their builds, optimize test execution, and automate software delivery.
Whether you’re self-hosting Git for security and compliance reasons, adopting an open-source forge, or working across multiple Git hosting platforms, CircleCI gives you the freedom to choose where your code lives and where your CI/CD jobs run without compromising on performance or capabilities.
With these additions, CircleCI now supports teams building on GitHub, GitHub Enterprise Server, GitLab, GitLab self-managed, Bitbucket Cloud, Cursor Origin, and Forgejo (including Codeberg).
CI/CD for GitHub Enterprise Server
For organizations that rely on GitHub Enterprise Server (GHES), control over infrastructure is often a business requirement. With the new integration, you can take advantage of CircleCI Cloud while continuing to host your repositories on your own GitHub instance.
You have the same flexibility over your CI/CD infrastructure. Run jobs on your own hardware with self-hosted runners, scale build capacity with CircleCI’s managed cloud compute, or use a mix of both depending on the needs of each workload.
You can connect your GHES instance directly from the CircleCI web app, with the same core pipeline functionality, triggers, and commit status reporting available to GitHub Cloud users.
An alternative to GitHub Actions for GitHub Enterprise Server
With CircleCI, your CI/CD tooling doesn’t have to be tied to your choice of Git hosting provider. Organizations using both GHES and GitHub Cloud can standardize their pipelines and testing practices across both environments while taking advantage of CircleCI’s build and test optimization capabilities.
How CircleCI connects to GitHub Enterprise Server
The integration uses a GitHub App registered on your instance, eliminating the need to create and rotate personal access tokens. An organization admin can register the app and connect repositories directly through the CircleCI web app.
Once connected, you can trigger pipelines through pushes, pull requests, schedules, API calls, and custom webhooks, with commit statuses reported directly back to your GitHub instance.
If a user hasn’t authorized CircleCI with your instance yet, the CircleCI web app shows a banner prompting them to.
CircleCI supports all GHES releases that GitHub currently supports. Your instance must be reachable over HTTPS from CircleCI Cloud. Contact your account team to discuss private connectivity options.
CI/CD for Forgejo and Codeberg
Part of the appeal of Forgejo is how easy it is to run and maintain. But hosting your own Git forge doesn’t mean you have to host your own CI/CD infrastructure.
Whether you run your own Forgejo instance, use a managed service, or host your repositories on Codeberg, a free, community-run home for open-source projects, powered by Forgejo, you can now use CircleCI to build, test, and deploy your software.
The integration supports Forgejo v16 and later.
An alternative to Forgejo Actions and Woodpecker CI
Forgejo users have several options for CI/CD, including Forgejo Actions and open-source tools like Woodpecker CI. If you’re running either on your own infrastructure, the resources you need to build and test your software can be considerably more demanding than the resources you need to host your repositories.
With CircleCI, you can take on projects that require different operating systems or specialized hardware without having to provision and maintain a separate build environment for each one. You can still use your own machines with self-hosted runners wherever it makes sense for your workloads.
And if you’re already using CircleCI and thinking about moving your repositories from GitHub to Forgejo or Codeberg, your .circleci/config.yml files come with you, with changes only where they rely on provider-specific features. If your CircleCI organization signs in with GitHub OAuth, you’ll set up a new organization for Forgejo and recreate anything tied to the old one, such as contexts, project settings and environment variables, and cloud trust policies like AWS OIDC roles.
How the Forgejo integration works
CircleCI connects to your Forgejo instance over HTTPS. If you restrict access to your instance, you can allow-list CircleCI’s published egress IP addresses or configure custom HTTP headers for services like Cloudflare Access.
You can trigger pipelines when you push code or open a pull request, as well as through schedules, API calls, and manual runs. CircleCI reports each job’s pass or fail status back to the corresponding commit in Forgejo.
To limit the permissions available within your build environments, each job checks out source code using a short-lived, read-only token. Credentials with write permissions remain in CircleCI’s backend and are never exposed to a job.
The same integration and authentication model applies to repositories hosted on Codeberg.
One CI/CD platform across all your repositories
Your organization might use a self-hosted Git forge for projects with strict security requirements while other teams work on GitHub or GitLab. You might also want to give engineering teams more freedom to choose their development tools without asking them to adopt an entirely different approach to CI/CD.
With CircleCI, teams can share CI/CD configuration, build environments, and testing practices across Git hosting providers. And if your organization moves repositories to another supported platform, your CircleCI config goes with them.
The flexibility extends to where your jobs run. CircleCI’s managed cloud compute spans Docker, Linux, macOS, Windows, Arm, and GPU environments, with resource classes offering up to 32 vCPUs and 128 GiB of RAM. You can use self-hosted runners for jobs that need access to private resources or specialized infrastructure and use cloud compute for other jobs in the same workflow.
Regardless of where you host your code, you can also take advantage of CircleCI’s ongoing investments in build and test performance. With Smarter Testing, you can use test impact analysis to run only the tests affected by a code change, distribute tests dynamically across execution nodes, and automatically retry individual test failures.
For projects using Gradle, Bazel, Turborepo, or Xcode, CircleCI’s managed build tool cache (open beta) lets you reuse build outputs across runs so you spend less time and compute repeating work that’s already been done.
What to know about the open betas
Both integrations are available to all CircleCI users. While you can already use them to build, test, and deploy your software, some platform capabilities aren’t available during the beta.
GitHub Enterprise Server beta limitations
- Support for Chunk sidecars isn’t available yet.
- Deployment rollbacks can’t be configured from the CircleCI web app.
- Terraform support for managing projects, pipeline definitions, and triggers isn’t available yet.
- GitHub Checks aren’t available yet. Pull requests show each job’s result through commit statuses.
For Forgejo users, the current limitations primarily affect how you trigger pipelines and interact with builds from the Forgejo interface.
Forgejo beta limitations
- Pull requests from forks don’t trigger builds.
- Label-based triggers, such as adding a
run-cilabel, aren’t supported. - Builds must be rerun from CircleCI rather than Forgejo.
- Forgejo shows one commit status per job. There’s no Checks view, since Forgejo has no Checks API.
- Personal build failure notifications aren’t available. Project-level notifications are supported.
- Forgejo v15 LTS isn’t supported.
Keep the same limitations in mind if you’re connecting repositories hosted on Codeberg.
Get started with the new integrations
Both integrations are available directly from the CircleCI web app. If you’re not already using CircleCI, you can create a free account and connect your first repository.
Connect GitHub Enterprise Server
- Select GitHub Enterprise Server when creating a project in CircleCI.
- Enter your instance URL.
- Register the CircleCI GitHub App on your instance.
- Install the app and connect your repository.
The GitHub Enterprise Server integration guide walks you through the setup process in more detail.
Connect Forgejo or Codeberg
If you use a standalone CircleCI organization, you can add Forgejo projects alongside projects from other supported Git hosting providers. If your existing CircleCI organization uses GitHub OAuth, you’ll need to create a separate organization for your Forgejo projects.
- Create a CircleCI bot user in Forgejo and give it access to the repositories you want to build. Then create two Authorized Integrations for the bot user: one for listing repositories and posting commit statuses, and another for read-only source code checkout. Separating the integrations keeps write credentials out of job environments.
- Enter your instance URL and both integrations in CircleCI.
- Add the organization-level webhook generated by CircleCI.
- Push a commit. CircleCI detects your
.circleci/config.ymlfile and runs the pipeline.
Similar posts you may enjoy
A faster, more reliable GitHub Actions alternative: Run Actions on CircleCI
Principal Content Producer
CircleCI self-hosted runners: Keep your code on your infrastructure and put idle compute to work
Director of Product Management
CI/CD at scale: A performance analysis of CircleCI vs GitHub Actions
Senior Field Engineer