The GitHub Actions Importer IssueOps repository demonstrates the functionality necessary to run GitHub Actions Importer commands through Actions and Issues, allowing you to migrate your CI/CD workflows without needing to install software on your local machine. This approach is especially useful for organizations that want to enable self-service migrations to GitHub Actions.
GitHub Actions Importer helps plan, forecast, and automate the migration of Azure DevOps, Bamboo, CircleCI, GitLab, Jenkins, and Travis CI pipelines to GitHub Actions. GitHub Actions Importer is distributed as a CLI and offers various commands you can use to migrate pipelines:
audit
: An audit will fetch all the pipelines defined in an existing CI server, convert each pipeline to its equivalent in GitHub Actions, and write a report that summarizes how complete of a migration the GitHub Actions Importer can provide.dry-run
: A dry run will fetch a single pipeline definition, convert it to its equivalent in GitHub Actions, and write a file (or files) to disk containing the converted workflow.migrate
: A migration will fetch a single pipeline definition, convert it to its equivalent in GitHub Actions, and open a pull request to a repository with the converted workflow.Complete the following steps:
jenkins
, azure-devops
, circle-ci
, gitlab
, travis-ci
, bamboo
, and actions-importer-running
.The repository that is created from this template must have one of the following settings enabled:
ruby/setup-ruby@v1
in the allowed list of actions and reusable workflows.See the documentation for more information related to these settings.
The following secrets are required:
GH_APPLICATION_ID
: The App ID of the GitHub App created earlier.GH_APPLICATION_KEY
: The value of the created GitHub App's private key. Value should not include any blank lines at the end.Optionally, the following secrets can be set:
GH_INSTANCE_URL
: The base URL of your GitHub instance (only required if it is not https://github.com).The following secrets are required:
AZURE_DEVOPS_ACCESS_TOKEN
: The personal access token to access the Azure DevOps instance. This token requires the following scopes:
Optionally, the following secrets can be set:
AZURE_DEVOPS_INSTANCE_URL
: The base URL of your Azure DevOps instance (only required if it is not https://dev.azure.com).The following secrets are required:
CIRCLE_CI_ACCESS_TOKEN
: The personal access token to access the CircleCI instance.CIRCLE_CI_SOURCE_GITHUB_ACCESS_TOKEN
: The personal access token to access pipeline files stored in GitHub.Optionally, the following secrets can be set:
CIRCLE_CI_INSTANCE_URL
: The base URL of your CircleCI instance (only required if it is not https://circleci.com).The following secrets are required:
GITLAB_ACCESS_TOKEN
: The personal access token to access the GitLab instance (requires read_api
scope).Optionally, the following secrets can be set:
GITLAB_INSTANCE_URL
: The base URL of your GitLab instance (only required if it is not https://gitlab.com).The following secrets are required:
JENKINSFILE_ACCESS_TOKEN
: The personal access token used to retrieve the contents of a Jenkinsfile
stored in the build repository (requires repo
scope).JENKINS_ACCESS_TOKEN
: The access token used to view Jenkins resources.JENKINS_USERNAME
: The username of the user's access token.JENKINS_INSTANCE_URL
: The base URL of your Jenkins instance.The following secrets are required:
TRAVIS_CI_ACCESS_TOKEN
: The personal access token to access the Travis CI instance.TRAVIS_CI_SOURCE_GITHUB_ACCESS_TOKEN
: The personal access token to access pipeline files stored in GitHub.Optionally, the following secrets can be set:
TRAVIS_CI_INSTANCE_URL
: The base URL of your Travis CI instance (only required if it is not https://travis-ci.com).The following secrets are required:
BAMBOO_ACCESS_TOKEN
: The personal access token to access the Bamboo instance.BAMBOO_INSTANCE_URL
: The base URL of your Bamboo instance.
The following secrets are required:
BITBUCKET_ACCESS_TOKEN
: The personal access token to access the BitBucket instance.Once configured, pipelines can be migrated to GitHub Actions by opening an issue with the relevant issue template and following the instructions.
Custom transformers can be used to customize the behavior of Actions Importer to meet your specific use-case. Custom transformers can be used to:
Custom transformers must be defined in a file with the .rb
file extension within a directory named transformers
in your IssueOps repository. Alternatively, you can provide specific custom transformers to be used by appending the --custom-transformers
option in the issue comment used to trigger Actions Importer. For example:
/migrate ... --custom-transformers my-transformers.rb
You can learn more about authoring custom transformers by completing the self-guided learning exercises below:
This template can be configured to be used with GitHub Enterprise Server deployments and self-hosted runners by:
runs-on:
statements in ruby/setup-ruby actions in issue_ops.yml to dictate the appropriate label(s) for your self-hosted runner.GitHub Actions Importer will collect anonymous telemetry when running to help us improve the tool. This can be disabled by adding the --no-telemetry
flag to any command provided to the GitHub Actions Importer CLI.
Additionally, by using this repository you agree to GitHub's Privacy Statement and the additional terms for Actions.