Table of Contents
- Prerequisites
- Install GitHub CLI & Importer
- Authenticate GitHub CLI
- Generate and Configure Tokens
- Configure the Importer
- Update the Importer
- Dry-Run a Pipeline Migration
- Migrate to GitHub Actions
- Verify the Workflow
- Conclusion & References
Prerequisites
Before starting the migration, ensure you have the following resources in place:The importer cannot migrate scripted pipelines, secrets, or unknown plugins. Make sure your Jenkins jobs use declarative pipelines or simple freestyle jobs.

Install GitHub CLI & Importer
On Debian/Ubuntu
Add the Actions Importer Extension
Authenticate GitHub CLI
Login interactively to GitHub:
Generate and Configure Tokens
1. GitHub Personal Access Token (Classic)
- Navigate to Settings → Developer settings → Personal access tokens → Tokens (classic)
- Click Generate new token, name it (e.g.
jenkins-importer), and select theworkflowscope - Copy the token for later use

2. Jenkins API Token
- Sign in to Jenkins and go to Manage Jenkins → Users
- Select your user and click Configure
- Under API Token, select Add new Token, name it (e.g.
GitHub Importer), then generate and copy it



Configure the Importer
Run the configuration command:- GitHub Personal Access Token
- GitHub Base URL:
https://github.com - Jenkins Personal Access Token
- Jenkins Username
- Jenkins Base URL (e.g.
http://your.jenkins.server:8080)
Update the Importer
Keep your extension up-to-date:Dry-Run a Pipeline Migration
Preview the generated workflow YAML locally without pushing changes:Migrate to GitHub Actions
Generate a pull request with the new workflow files:

main branch.
Verify the Workflow
After merging, trigger the workflow manually or via push. Monitor runs in the Actions tab:
Conclusion & References
The GitHub Actions Importer CLI accelerates the transition from Jenkins to GitHub’s CI/CD platform. For full details, visit the official documentation.Enjoy seamless pipeline migration and take advantage of GitHub Actions for robust workflow automation.
Links and References
