Skip to main content
CI/CD
GitHub Actions
GitLab CI/CD
Updated Nov 2026

How to Migrate from CircleCI to GitHub Actions or GitLab CI/CD

How each CircleCI concept maps to the new platform, what GitHub's converter does and doesn't handle, what a minute costs on each platform, and the order to cut over in.

Published November 29, 2026 · HostingX Solutions LLC

Short answer

  • For GitHub Actions, start with GitHub Actions Importer. audit sizes the migration, forecast estimates runner usage from past CircleCI runs, dry-run writes converted workflow files, and migrate opens a pull request. Contexts, project-level environment variables, unknown orbs and self-hosted runner executors still need manual work.

  • For GitLab CI/CD, GitLab publishes a mapping guide rather than a converter. Workflows become stages (or needs), orbs become CI/CD components, contexts become group-level CI/CD variables, and approval jobs become when: manual.

  • Two CircleCI features have no built-in GitHub Actions equivalent: timing-based test splitting and Docker Layer Caching. Plan their replacements before you convert anything.

  • At list prices on November 29, 2026, a 2-vCPU Linux minute costs $0.006 on CircleCI (Docker medium, 10 credits) and on GitHub's standard runner. GitLab's purchased compute minutes work out to $0.01 a minute on its default small Linux runner. Included allowances, seats and add-ons make the real difference.

  • Cut over in five phases: inventory, pilot, parallel run, cutover, decommission. When you finish, rotate every secret that was stored in CircleCI, and replace long-lived cloud keys with OIDC.

What Changes When You Leave CircleCI?

CircleCI, GitHub Actions and GitLab CI/CD all define pipelines in YAML stored in the repository, built from jobs and steps. That's why most of a migration is translation rather than redesign. The differences that take real work are structural:

  • One file becomes many, or one. CircleCI keeps every workflow in config.yml. GitHub requires one workflow file per workflow, so each CircleCI workflow becomes its own file. GitLab uses a single .gitlab-ci.yml and orders jobs with stages.

  • Orbs don't carry over. Each orb has to be replaced with GitHub actions or GitLab CI/CD components, or rewritten as plain steps.

  • Secrets move to a different model. CircleCI contexts and project environment variables have to be recreated by hand on either platform.

  • Some optimizations have no equivalent. GitHub's own migration guide says CircleCI's automatic test parallelism “is not built into GitHub Actions” and that GitHub Actions has no equivalent of Docker Layer Caching.

  • CircleCI's convenience images can break. They set USER to circleci, which causes permission conflicts in GitHub Actions. GitHub recommends moving away from them when you migrate.

The phases, parallel running and pitfalls of moving any CI system are in our CI/CD migration playbook. This guide covers what is specific to CircleCI.

CircleCI to GitHub Actions and GitLab CI/CD: Concept Mapping

This table combines GitHub's and GitLab's CircleCI migration guides with their workflow syntax references:

CircleCI conceptCircleCIGitHub ActionsGitLab CI/CD
Config file.circleci/config.yml, one file that can hold several workflowsOne YAML file per workflow in .github/workflows/One .gitlab-ci.yml in the repository root
Job orderworkflows with requiresneeds on each jobstages, or needs for a dependency graph (up to 50 jobs per needs)
Reusable configOrbsActions (JavaScript, Docker or composite) and reusable workflowsCI/CD components
Where jobs rundocker, machine and macos executors, sized with resource_classruns-on labels for GitHub-hosted, larger or self-hosted runners; container for the primary container and services for the restRunners chosen with tags; image per job or as a default; services
CheckoutA checkout stepThe actions/checkout actionAutomatic; no step needed
Shared secretsContexts, with security group, project and expression restrictionsOrganization and repository secrets, plus environment secrets for jobs that reference an environmentGroup-level CI/CD variables shared by the projects in a group
Dependency cachesave_cache and restore_cacheactions/cache, or the cache input of setup actions such as actions/setup-nodeThe cache keyword
Passing files between jobspersist_to_workspace and attach_workspaceactions/upload-artifact and actions/download-artifactartifacts; later-stage jobs download earlier artifacts by default
Manual approvalAn approval job (type: approval)An environment with required reviewers (on Free, Pro and Team plans, only in public repositories)when: manual on the deploy job, usually with environment
SchedulesScheduled pipelines or schedule triggers with a cron expressionon.schedule with cron, which runs only on the default branchPipeline schedules created in the GitLab UI, with rules on $CI_PIPELINE_SOURCE == "schedule"
Branch filtersfilters: branches: onlyon.push.branches, or if: on a jobrules matching $CI_COMMIT_BRANCH
Test splittingparallelism with circleci tests run --split-by=timingsstrategy.matrix plus your test runner's sharding; no built-in timing-based splitparallel: N (1 to 200), with CI_NODE_INDEX and CI_NODE_TOTAL
Docker layer cachingDLC, 200 credits per job runNo equivalent; use a BuildKit cache backend such as the GitHub Actions cacheNo add-on; GitLab documents layer caching for Docker-in-Docker builds with inline or registry cache backends

Built-in variables change names too. GitHub Actions Importer maps CIRCLE_SHA1 to ${{ github.sha }}, CIRCLE_PR_NUMBER to ${{ github.event.number }}, CIRCLE_WORKING_DIRECTORY to ${{ github.workspace }} and CIRCLE_BRANCH to ${{ github.ref }}. Note that github.ref is the full ref, such as refs/heads/main. Scripts that compared CIRCLE_BRANCH to a plain branch name need github.ref_name instead.

Before and After: One Config on All Three Platforms

Here is a typical CircleCI pipeline for a Node.js project. It builds and caches dependencies, splits tests across four containers, waits for an approval on main, then deploys with credentials from a context:

.circleci/config.yml

version: 2.1

jobs:
  build:
    docker:
      - image: cimg/node:lts
    resource_class: medium
    steps:
      - checkout
      - restore_cache:
          keys:
            - npm-v1-{{ checksum "package-lock.json" }}
      - run: npm ci
      - save_cache:
          key: npm-v1-{{ checksum "package-lock.json" }}
          paths:
            - ~/.npm
      - run: npm run build
      - persist_to_workspace:
          root: .
          paths:
            - dist

  test:
    docker:
      - image: cimg/node:lts
    parallelism: 4
    steps:
      - checkout
      - run: npm ci
      # CIRCLE_NODE_INDEX starts at 0; Jest shards start at 1
      - run: npx jest --shard=$((CIRCLE_NODE_INDEX + 1))/$CIRCLE_NODE_TOTAL

  deploy:
    docker:
      - image: cimg/node:lts
    steps:
      - checkout
      - attach_workspace:
          at: .
      - run: ./scripts/deploy.sh

workflows:
  build-test-deploy:
    jobs:
      - build
      - test:
          requires: [build]
      - hold:
          type: approval
          requires: [test]
          filters:
            branches:
              only: main
      - deploy:
          requires: [hold]
          context: production-aws
          filters:
            branches:
              only: main

The test job uses Jest's --shard option so the three versions stay comparable. Many CircleCI configs split with circleci tests run --split-by=timings instead, which uses JUnit timing data from earlier runs. That has no built-in equivalent on GitHub.

The same pipeline in GitHub Actions

.github/workflows/build-test-deploy.yml

name: build-test-deploy

on: [push]

permissions:
  contents: read

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: lts/*
          cache: npm
      - run: npm ci
      - run: npm run build
      - uses: actions/upload-artifact@v7
        with:
          name: dist
          path: dist

  test:
    needs: build
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        shardIndex: [1, 2, 3, 4]
        shardTotal: [4]
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: lts/*
          cache: npm
      - run: npm ci
      - run: npx jest --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}

  deploy:
    needs: test
    if: github.ref == 'refs/heads/main'
    runs-on: ubuntu-latest
    # Required reviewers on this environment replace the approval job
    environment: production
    permissions:
      contents: read
      id-token: write   # OIDC instead of stored AWS keys
    steps:
      - uses: actions/checkout@v7
      - uses: actions/download-artifact@v8
        with:
          name: dist
          path: dist
      - uses: aws-actions/configure-aws-credentials@v6
        with:
          role-to-assume: ${{ vars.AWS_DEPLOY_ROLE_ARN }}
          aws-region: us-east-1
      - run: ./scripts/deploy.sh
  • needs replaces requires, and artifacts replace the workspace.

  • The cache: npm input of actions/setup-node replaces the explicit cache steps. For other directories, actions/cache takes a key and restore-keys, much like restore_cache.

  • The approval job becomes the production environment with required reviewers. Check your plan first: on GitHub Free, Pro and Team, required reviewers work only in public repositories.

  • The production-aws context isn't copied over as a secret. The job requests a short-lived AWS credential through OIDC; this needs id-token: write and an IAM role that trusts GitHub's OIDC provider.

  • The example references actions by major version for readability. GitHub recommends pinning actions to a full-length commit SHA.

The same pipeline in GitLab CI/CD

.gitlab-ci.yml

stages:
  - build
  - test
  - deploy

default:
  image: node:lts

build:
  stage: build
  cache:
    key:
      files:
        - package-lock.json
    paths:
      - .npm/
  script:
    - npm ci --cache .npm --prefer-offline
    - npm run build
  artifacts:
    paths:
      - dist/

test:
  stage: test
  parallel: 4
  cache:
    key:
      files:
        - package-lock.json
    paths:
      - .npm/
    policy: pull
  script:
    - npm ci --cache .npm --prefer-offline
    # CI_NODE_INDEX starts at 1, like Jest shards
    - npx jest --shard=$CI_NODE_INDEX/$CI_NODE_TOTAL

deploy:
  stage: deploy
  environment: production
  id_tokens:
    GITLAB_OIDC_TOKEN:
      aud: sts.amazonaws.com
  rules:
    - if: $CI_COMMIT_BRANCH == "main"
      when: manual
  script:
    # deploy.sh calls aws sts assume-role-with-web-identity
    - ./scripts/deploy.sh

The checkout step disappears, because GitLab fetches the repository automatically. Stages replace requires, when: manual replaces the approval job, and the deploy job gets an OIDC ID token for AWS instead of keys from a context. If other projects need shared values, store them as CI/CD variables on the group.

How Do You Convert CircleCI Config Automatically?

For GitHub Actions, GitHub provides GitHub Actions Importer, an extension to the GitHub CLI that runs in a container. You need Docker installed and running, the GitHub CLI, a GitHub personal access token (classic) with the repo and workflow scopes, a CircleCI personal API token, and your CircleCI organization name. These are the commands as GitHub documents them:

gh extension install github/gh-actions-importer

# Prompts for both tokens and the CircleCI organization name
gh actions-importer configure
gh actions-importer update

# 1. Audit every project in the CircleCI organization
gh actions-importer audit circle-ci --output-dir tmp/audit

# 2. Forecast GitHub Actions usage from completed runs (last 7 days by default)
gh actions-importer forecast circle-ci --output-dir tmp/forecast_reports

# 3. Convert one project and write the files, without a pull request
gh actions-importer dry-run circle-ci --output-dir tmp/dry-run \
  --circle-ci-project my-circle-ci-project

# 4. Convert and open a pull request in the target repository
gh actions-importer migrate circle-ci --output-dir tmp/migrate \
  --target-url https://github.com/octo-org/octo-repo \
  --circle-ci-project my-circle-ci-project

The audit converts every pipeline and reports how complete and complex the migration can be. The forecast reports job count, pipeline count, execution time, queue time and concurrent jobs, broken down per CircleCI runner queue. Execution time is what you multiply by GitHub's per-minute rates; concurrency tells you how many runners you need.

What the importer converts, and what it doesn't

  • Supported: cron triggers (to on.schedule), environment, executors (to runs-on), jobs, matrix, parameters (to env or workflow_dispatch inputs), steps, when and unless (to if), and triggers.

  • Partially supported: executors that map to container and services, and orbs that map to actions.

  • Unsupported: executors that use self-hosted runners, setup (dynamic configuration) and version.

  • Manual tasks: contexts, project-level environment variables, unknown job properties and unknown orbs. GitHub suggests custom transformers for anything the importer can't convert.

  • Limitations: automatic caching between jobs of different workflows isn't supported, and audit needs a CircleCI organization account (dry-run and migrate also work with a user account). The importer's source-location setting currently supports only GitHub, so it expects CircleCI projects whose code is on GitHub.

For GitLab CI/CD, GitLab's migration guide is a mapping of concepts with side-by-side examples; it doesn't include a conversion tool. Plan to translate configs by hand, starting with your most common pipeline shape and turning it into a CI/CD component that other projects can include.

What Will It Cost? Credits, Minutes and Compute Minutes

The three platforms bill in different units, so convert everything to dollars per minute for the runner sizes you actually use. These are list prices from each vendor's pricing pages and documentation on November 29, 2026 (CircleCI's price list is dated October 8, 2026). Per-minute dollar figures for CircleCI are our arithmetic at $0.0006 per credit, and GitLab's are at $10 per 1,000 purchased compute minutes.

CircleCIGitHub ActionsGitLab.com
How usage is billedCredits. Each resource class costs a set number of credits per minute; users and add-ons also cost credits.A per-minute rate for each runner type, drawn first from a monthly included amount in dollars. Jobs round up to whole minutes.Compute minutes: job duration × a cost factor for the runner type.
Free plan30,000 credits a month (up to 6,000 minutes on the small Docker class), up to 5 active users, 30 concurrent jobs$12 of included compute a month. Standard runners are free in public repositories.400 compute minutes per top-level group a month, 5 users per top-level group
Paid plansPerformance from $15 a month, with 30,000 credits and 5 active users included; extra users $15 a month (25,000 credits). Scale is custom.Team: $18 of included compute a month. Enterprise Cloud: $300.Premium: $29 per user a month, billed annually, with 10,000 compute minutes. Ultimate: custom price, 50,000 minutes.
Extra usage$15 per 25,000 credits, or $0.0006 per creditThe per-minute rates below$10 per 1,000 compute minutes
Linux, 2 vCPUDocker medium (2 CPU, 4 GB): 10 credits, $0.006 a minute. Linux VM medium (2 CPU, 7.5 GB): the same.Standard Linux 2-core (2 vCPU, 8 GB in private repositories): $0.006 a minuteSmall Linux (2 vCPU, 8 GB), cost factor 1: $0.01 a minute on purchased minutes
Linux, 4 vCPUDocker large (4 CPU, 8 GB): 20 credits, $0.012 a minuteLinux 4-core larger runner: $0.012 a minuteMedium Linux (4 vCPU, 16 GB), cost factor 2: $0.02 a minute
WindowsWindows VM medium (4 CPU, 16 GB): 40 credits, $0.024 a minuteWindows 2-core: $0.010 a minuteWindows medium, cost factor 1 (beta)
macOSM4 Pro Medium (6 CPU, 28 GB): 200 credits, $0.12 a minutemacOS 3- or 4-core: $0.062 a minute. macOS 12-core: $0.077.macOS M1 medium, cost factor 6 (beta)
Docker layer caching200 credits per job run, $0.12No equivalent. Actions cache: 10 GB per repository included, then $0.07 per GB a month.No add-on; layer caching uses inline or registry cache backends
Your own runnersSelf-hosted runner concurrency: 5 on Free, 20 on Performance, unlimited on Scale. Runner network egress: 420 credits per GB.Free; they don't draw from the included amountAllowed on every plan; jobs on your own runners have no build-time limit on GitLab.com

Three things decide the real comparison. First, sizes don't line up exactly: CircleCI's 2-CPU Docker class has 4 GB of RAM, while GitHub's standard Linux runner for private repositories and GitLab's small Linux runner have 8 GB. Second, seats are priced differently: CircleCI charges for active users beyond five, GitLab Premium charges per user, and on GitHub the seats are part of the plan rather than Actions. Third, caching changes how many minutes you use: losing Docker Layer Caching or timing-based splitting can lengthen jobs until you replace them. Run the importer's forecast on real history, then price its execution minutes with each vendor's calculator.

A Five-Phase Cutover Plan

  1. Inventory. Run audit (or list projects by hand for GitLab). Record every context and its restrictions, project environment variables, orbs, approval jobs, schedules, SSH and deploy keys, self-hosted runners, and any allowlists that admit CircleCI's IP ranges. Note which branch protection rules require CircleCI status checks.

  2. Pilot. Convert two or three representative projects: a simple build-and-test, one with a deployment and approvals, and the slowest one. Replace orbs, set up secrets or OIDC, and fix image permission issues here, where mistakes are cheap.

  3. Parallel run. Run CircleCI and the new pipelines on the same commits, with deployments still coming only from CircleCI. Compare results, durations and queue times. Budget for paying both platforms during this phase.

  4. Cutover. Move deployments to the new platform, switch required status checks in branch protection to the new job names, and stop builds in CircleCI for each migrated project.

  5. Decommission. Delete CircleCI contexts and project environment variables, then rotate every secret they held: cloud keys, registry tokens, deploy keys and API tokens. Where the target supports it, replace cloud keys with OIDC rather than issuing new long-lived keys. Remove CircleCI's access to your source control and drop its IP ranges from allowlists.

For where the rotated secrets should live afterwards, see our comparison of HashiCorp Vault and AWS SSM Parameter Store.

Pitfalls to Plan For

  • Docker image builds get slower. Without Docker Layer Caching, use a BuildKit cache backend. Docker's docs recommend the GitHub Actions cache backend inside GitHub workflows: cache-from: type=gha and cache-to: type=gha,mode=max on docker/build-push-action. It counts against the repository's cache, which is 10 GB by default and evicts entries not accessed in 7 days. On GitLab, the docs show layer caching for Docker-in-Docker builds with the inline or registry cache backend.

  • Test splitting by timings disappears on GitHub. Use a matrix with your test runner's sharding (Jest and Playwright both take --shard=1/4-style arguments). A matrix can generate up to 256 jobs per workflow run. On GitLab, parallel gives each job CI_NODE_INDEX and CI_NODE_TOTAL.

  • Approvals depend on your GitHub plan. Required reviewers and wait timers are available only in public repositories on Free, Pro and Team. Environment secrets in private repositories need Pro, Team or Enterprise. Decide how production approvals will work before you convert approval jobs.

  • Schedules run only on the default branch. On GitHub, scheduled workflows run on the latest commit of the default branch, can be delayed at busy times such as the start of every hour, and are disabled in public repositories after 60 days without activity. A CircleCI schedule filtered to another branch needs a workflow that checks out that branch explicitly.

  • Self-hosted runners need a security review. The importer doesn't convert self-hosted runner executors. GitHub warns that self-hosted runners should almost never be used for public repositories, because they aren't guaranteed to be clean between jobs. Prefer ephemeral or just-in-time runners. Self-hosted runner usage is free on GitHub and doesn't count against GitLab.com compute minutes.

  • Orbs become third-party code. Every action you add runs with the job's permissions. Pin actions to commit SHAs, set permissions explicitly as in the example above, and prefer actions published by the vendor of the tool they wrap. Our guide to SBOMs and image signing with Cosign covers the rest of pipeline supply-chain security.

  • Long-lived keys get copied instead of replaced. It's tempting to paste context values into GitHub secrets or GitLab variables. With OIDC, GitHub's docs say the cloud provider issues a short-lived token valid for a single job. GitLab's id_tokens keyword creates OIDC tokens for the same purpose, with setup guides for AWS, Azure, Google Cloud and HashiCorp Vault.

Where Does This Fit With the Rest of Your Pipeline?

A CI migration is a good time to move security checks into pull requests. Our guide to migrating legacy SAST to CI/CD pipeline scanning covers code scanning in GitHub Actions and GitLab. If you deploy to Kubernetes, the CI pipeline can stop deploying directly and hand off to GitOps; see GitOps compliance with Argo CD. For the stages a modern pipeline should have, see our CI/CD pipeline automation guide.

Frequently Asked Questions

Can I convert CircleCI config to GitHub Actions automatically?

Mostly. GitHub Actions Importer converts jobs, steps, executors, matrices, parameters, conditions and cron triggers, and partially converts orbs. Contexts, project-level environment variables, unknown orbs and self-hosted runner executors need manual work. Use dry-run to review the output before migrate opens a pull request.

Is GitHub Actions cheaper than CircleCI?

Not by the minute for small Linux jobs: at November 2026 list prices, 2-vCPU Linux works out to $0.006 a minute on both. The difference comes from what's included in your plan, per-user charges, macOS and Windows rates, and add-ons such as Docker Layer Caching. Run the importer's forecast command on your own history to compare.

Does GitHub Actions support CircleCI orbs?

No. Orbs map to GitHub actions. The importer converts orbs it knows, and anything else has to be replaced with an equivalent action or rewritten as steps.

What replaces CircleCI contexts?

On GitHub, organization or repository secrets, plus environment secrets for jobs that deploy. On GitLab, CI/CD variables stored on a group. Neither platform imports them, so recreate them by hand. Where a context only held cloud credentials, replace it with OIDC.

Is there a CircleCI converter for GitLab?

GitLab's migration guide documents how CircleCI concepts map to GitLab CI/CD with side-by-side examples, but it doesn't include a conversion tool. Most teams convert one representative pipeline by hand, then turn it into a CI/CD component for the rest.

Do I need to rotate secrets after leaving CircleCI?

Yes. Any secret that was stored in CircleCI is still valid until you revoke it, even after you delete it there. Rotate cloud keys, registry tokens, deploy keys and API tokens as part of decommissioning, and use OIDC so the new pipelines don't need long-lived cloud keys at all.

Planning a move off CircleCI?

We plan and run CI/CD migrations to GitHub Actions and GitLab CI/CD for US businesses: inventory, conversion, OIDC for cloud access, parallel runs and cutover. The first 30-minute consultation is free.

Sources

See also: DevOps automation services · Vault vs SSM Parameter Store · GitOps compliance with Argo CD

HostingX Solutions LLC logo

HostingX Solutions LLC

FinOps, DevOps, and automation for US businesses.

info@hostingx.solutions

Subscribe to our newsletter

Get monthly email updates about improvements.


© 2026 HostingX Solutions LLC. All Rights Reserved.

LLC No. 0008072296 | Est. 2026 | New Mexico, USA

Legal

Terms of Service

Privacy Policy

Acceptable Use Policy

Security & Compliance

Security Policy

Service Level Agreement

Compliance & Certifications

Accessibility Statement

Privacy & Preferences

Cookie Policy

Manage Cookie Preferences

Data Subject Rights (DSAR)

Unsubscribe from Emails