CircleCI NewsDec 4, 20267 min read

CircleCI adds CI/CD support for GitHub Enterprise Server, Forgejo, and Codeberg

Nathan Fish

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.

The CircleCI Create your first pipeline screen. Under Connect your VCS provider, six options: GitHub Cloud, GitHub Enterprise Server, GitLab Cloud, GitLab Self-Managed, Cursor Origin, and Forgejo Self-Hosted. The Connect GitHub Enterprise Server form asks for a server URL and the GitHub organization that owns the CircleCI GitHub App.

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.

Diagram: eight Git hosting platforms (GitHub, GitHub Enterprise Server, GitLab, GitLab self-managed, Bitbucket Cloud, Origin, Forgejo, Codeberg) connect to CircleCI, which provides pipeline orchestration and build and test optimization. CircleCI runs jobs on managed cloud compute (Docker, Linux, macOS, Windows, Arm, GPU) or self-hosted runners (Kubernetes, virtual machines, specialized infrastructure).

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-ci label, 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

  1. Select GitHub Enterprise Server when creating a project in CircleCI.
  2. Enter your instance URL.
  3. Register the CircleCI GitHub App on your instance.
  4. 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.

  1. 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.
  2. Enter your instance URL and both integrations in CircleCI.
  3. Add the organization-level webhook generated by CircleCI.
  4. Push a commit. CircleCI detects your .circleci/config.yml file and runs the pipeline.

Frequently asked questions

What is the best CI/CD platform for GitHub Enterprise Server?

GitHub Actions provides native CI/CD for GitHub Enterprise Server, while CircleCI offers a dedicated alternative with managed cloud compute, self-hosted runners, and tools for improving build and test performance. CircleCI is particularly well suited to engineering teams that want to standardize CI/CD across multiple Git hosting providers while retaining control over their execution environments.

What is the best CI/CD platform for Forgejo?

Alternatives to Forgejo Actions include CircleCI, Woodpecker CI, and Jenkins. Teams looking to spend less time managing build infrastructure can use CircleCI to access a wide range of cloud execution environments, while capabilities like Smarter Testing help reduce testing time and compute costs.

Can I use CircleCI for CI/CD on Codeberg?

Yes. CircleCI connects to Codeberg through its Forgejo integration. You can automatically build, test, and deploy software from Codeberg repositories using CircleCI’s managed cloud compute or your own infrastructure with self-hosted runners.

Can I use self-hosted runners with GitHub Enterprise Server and Forgejo?

Yes. CircleCI self-hosted runners let you execute CI/CD jobs on your own infrastructure while managing pipelines through CircleCI Cloud. You can use self-hosted runners exclusively or combine them with managed cloud compute within the same workflow. Your runners need network access to your GitHub Enterprise Server or Forgejo instance.

Can I use GitHub and Forgejo with the same CircleCI organization?

Yes. Standalone CircleCI organizations support projects from multiple Git hosting providers, including GitHub and Forgejo. If you use a GitHub OAuth organization, you’ll need a separate CircleCI organization for your Forgejo projects.

Can I keep my CircleCI config when moving from GitHub to Forgejo?

Yes. Your existing .circleci/config.yml files work on Forgejo and Codeberg, with changes only where they rely on features specific to your previous Git hosting provider. If your CircleCI organization uses GitHub OAuth, you’ll need a new organization for Forgejo, so contexts, project settings, environment variables and cloud trust policies tied to the old organization need to be set up again.

Which versions of GitHub Enterprise Server and Forgejo does CircleCI support?

CircleCI supports all GitHub Enterprise Server releases that GitHub currently supports and Forgejo instances running v16 or later, including self-hosted instances and managed services. Forgejo v15 LTS is not currently supported.

Can I connect a self-hosted Git instance behind a firewall to CircleCI?

GitHub Enterprise Server and Forgejo instances must be reachable from CircleCI Cloud over HTTPS. For Forgejo, you can allow-list CircleCI’s published egress IP addresses or configure custom HTTP headers for ingress protection. Contact your CircleCI account team to discuss private connectivity options for GitHub Enterprise Server.

Do Not Sell or Share My Personal Information

CircleCI doesn't sell your personal information. We share some of it with advertising partners for cross-context behavioral advertising. Opt out to stop that sharing on this browser.