Prerequisites
Install the GitHub Actions Importer extension and verify the help output:Which credentials are required?
You need two credentials so the importer can access both GitHub and Jenkins:| Credential | Purpose | Example environment variable |
|---|---|---|
GitHub personal access token (classic) with workflow scope | Authenticate the importer to create or read workflows and related repo data | GITHUB_PAT |
| Jenkins API token for the Jenkins user account used by the importer | Authenticate API calls to your Jenkins instance | JENKINS_API_TOKEN, used with JENKINS_USERNAME and JENKINS_BASE_URL |
Create a GitHub personal access token (classic)
- In GitHub, go to Settings → Developer settings → Personal access tokens → Classic.
- Click Generate new token (classic).
- Give it a descriptive name (for example,
jenkins-importer-token-2) and select theworkflowscope. - Generate the token and copy it to a secure location. Do not commit this token to source control.

Create a Jenkins API token
- Log into your Jenkins instance as the user the importer will use (example:
siddharth). - Navigate to the user’s Security / API Token section.
- Create a new token (for example,
GH Importer 2). - Copy the generated token and store it in a secure secret store.

Configure the GitHub Actions Importer
Run the interactive configure command and follow the prompts to provide the tokens and base URLs:Store generated tokens securely (for example, in a credential manager or an encrypted secrets store). Avoid copying tokens into unencrypted text files or source control.
Next steps
You have now configured the GitHub Actions Importer with credentials for your Jenkins CI server. Next, run an audit to analyze your Jenkins CI/CD footprint and plan the migration:Links and references
- GitHub: Create a personal access token (classic) — https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
- Jenkins: API token documentation — https://www.jenkins.io/redirect/user-admin/#api-token
- GitHub Actions Importer extension (repository) — https://github.com/github/gh-actions-importer