gh) on a virtual machine, authenticate gh, and verify the extension is available. The official documentation covers installation, credential configuration, and migration workflows for converting Jenkins pipelines to GitHub Actions: https://docs.github.com/en/actions/migrating-to-github-actions/about-migrating-from-jenkins-with-github-actions-importer
Summary of steps:
- Verify prerequisites
- Install the GitHub CLI (
gh) if missing - Authenticate
ghwith a GitHub Personal Access Token (PAT) or interactive login - Install and verify the
gh-actions-importerextension - Configure the importer and run audit/dry-run/migrate commands
Prerequisites

1. Check for GitHub CLI (gh)
Confirm whether gh is already installed:
gh on Debian/Ubuntu using the official repository and keyring. This single-line script adds the repository, imports the GPG keyring, updates apt, and installs gh:
gh and inspect available top-level commands:
2. Install the GitHub Actions Importer extension
Attempt to install the extension:gh is not authenticated, it will prompt you to authenticate first. Continue to the authentication section below.
3. Authenticate gh (interactive or token)
You can authenticate in two ways:
- Interactive login:
gh auth login(recommended for interactive sessions) - Environment token: set
GH_TOKENto a Personal Access Token (PAT) to allow non-interactive usage
Minimum required scopes for the importer are:
repo, read:org, and workflow. Keep the token secure and consider setting an expiration.
When you finish the interactive
gh auth login flow, you should see confirmation:
4. Install and verify the importer extension
Withgh authenticated, install the importer extension:
gh and the extension versions to ensure everything is up-to-date:
5. Explorer commands: what the importer can do
List available importer commands and options:6. Configure the importer for Jenkins
Run the interactive configuration to store CI provider credentials and base URLs:gh actions-importer audit— analyze your Jenkins CI/CD footprint and identify migration candidatesgh actions-importer forecast— estimate GitHub Actions usage from historical pipeline datagh actions-importer dry-run— convert a pipeline and output workflow YAML without creating changesgh actions-importer migrate— convert a pipeline and open a pull request with the resulting workflow
7. Feature toggles
Inspect feature toggles that control importer behavior:
Next steps
- Run
gh actions-importer auditto analyze your Jenkins pipelines and generate a migration plan. - Use
gh actions-importer dry-runto preview converted workflow YAML files. - When ready, run
gh actions-importer migrateto create pull requests with the migrated workflows.
- GitHub Docs — Migrating from Jenkins with GitHub Actions Importer: https://docs.github.com/en/actions/migrating-to-github-actions/about-migrating-from-jenkins-with-github-actions-importer
- GitHub CLI installation: https://github.com/cli/cli#installation