Why Integrate GitHub?
Integrating Codemod with GitHub allows you to apply codemods directly to your repositories and create pull requests with automated code changes.Setting Up the Integration
Step 1: Navigate to “add organization”
Sign in to Codemod. Click on team switcher and click on “Add Organization”
Step 2: Connect GitHub
Click the “Connect GitHub” button to begin the integration process.
Step 3: Install the GitHub App
You’ll be redirected to GitHub where you can:- Select the GitHub account (personal or organization) where you want to install the Codemod app
- Choose which repositories to grant access to (all repositories or select specific ones)
- Review the permissions requested by the app

Using the GitHub Integration
Once connected, you can:- Select connected repositories when running codemods
- Automatically create pull requests with your code transformations
- Configure which repositories to target for specific codemods
Managing Permissions
You can modify repository access at any time:- Go to your GitHub account settings
- Navigate to Applications → Installed GitHub Apps
- Find Codemod and click Configure
- Update repository access as needed
Required Permissions
Codemod requires the following GitHub permissions: Read access to:- Repository metadata
- Repository code
- Commit statuses
- Code (to create branches and commits)
- Pull requests (to create and update PRs)
Security Considerations
- We recommend enabling branch protections on your main branches to ensure changes are reviewed before merging
- Codemod can only access repositories you explicitly grant during the installation process
- You can revoke access at any time through your GitHub settings
- All code transformations are submitted as pull requests for your review
Managing the Integration
To disconnect or modify the GitHub integration:- Go to Codemod Settings → Integrations
- Click Configure or Disconnect next to the GitHub integration
Need help? If you encounter any issues setting up the GitHub integration, please contact our support team or visit our documentation for troubleshooting steps.