Learn how to seamlessly migrate your existing Jenkins jobs into GitHub Actions workflows using the GitHub Actions Importer CLI extension. This guide walks you through installation, configuration, and execution, so you can automate CI/CD with GitHub’s native tooling.Documentation Index
Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
Use this file to discover all available pages before exploring further.
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:| Resource | Purpose |
|---|---|
| Jenkins account or organization | Source of pipelines/jobs to migrate |
| Jenkins personal API token | Grants API access to read pipeline definitions |
| Docker | Required to run the Importer CLI in a container (optional) |
GitHub CLI (gh) v2+ | Manages GitHub authentication and extensions |
| GitHub Personal Access Token | Requires the workflow scope for creating workflows |
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
