Comments (2)
Can you update the last README.md with the following instruction?
To actually generate a script, you'll need to set an ADO_PAT
as an environment variable with the following permissions:
ADO PAT Permission | Scopes |
---|---|
Build | Read |
Code | Full & Status |
Graph | Read & Manage |
Identity | Read |
Service Connections | Read |
User Profile | Read |
To test, you can run disable-ado-repo
command with the following format:
octoshift disable-ado-repo --ado-org <YOUR ADO organization name> --ado-team-project <Your ADO Project name> --ado-repo <Your repo name>
Make sure to enable your Azure DevOps Repo again before you start the migration.
Performing any of the commands that actually touch GitHub will need the GH_PAT
environment variable with the following permissions:
GitHub PAT Permission | Scopes |
---|---|
Repo | Full |
Org | admin |
For example, the following command with generate a Bash script file called migrate.sh
with the commands to migrate all enabled repos from ADO to your GitHub Organization.
octoshift generate-script --github-org <Your GitHub Organization> --ado-org <Your ADO organization> --output migrate.sh
WARNING - 11/06/21: As of now, the script will generate a command starting with
./octoshift
, which currently points to the current directory. You need to change those lines tooctoshift
to point to the environment level.
Running that generated file, for example migrate.sh
after chmod with chmod +x migrate.sh
will start the migration process. However, before start doing so, you have to install the Azure Pipeline App in your GitHub Profile and connect with Azure DevOps project. Otherwise, you will get this error:
[WARNING] CANNOT FIND GITHUB APP SERVICE CONNECTION IN ADO ORGANIZATION: xxxx. You must install the Pipelines app in GitHub and connect it to any Team Project in this ADO Org first
from gh-gei.
We'll need to condense this down into something easier for customers to consume, but here's the detailed info on what scopes are needed for which commands:
generate-script
ADO: Build (Read)
ADO: Code (Read)
ADO: Service Connections (Read)
generate-script (--repos-only)
ADO: Build (Read) -- REMOVING THIS in v0.5
ADO: Code (Read)
migrate-repo
ADO: Code (Read)
GH: Repo (all)
GH: read:org
** ADO: Identity (Read)
** ADO: Work Item (Read)
add-team-to-repo
GH: Repo (All)
configure-autolink
GH: Repo (All)
create-team
GH: Repo (All)
lock-ado-repo
ADO: Code (Read)
ADO: Identity (Read)
ADO: Security (Manage)
disable-ado-repo
ADO: Code (Read, write & manage)
rewire-pipeline
ADO: Build (Read & execute)
share-service-connection
ADO: Full Access
integrate-boards
ADO: Full Access (for GetGithubHandle API)
GH: Repo (All)
grant-migrator-role
GH: read:org
revoke-migrator-role
GH: read:org
from gh-gei.
Related Issues (20)
- Unable to run gh gei migrate-repo HOT 2
- MigrateRepositoryJob: Pushing a batch of 1 Git refs failed on attempt 4/4. HOT 2
- [ado2gh] Unable to rewire pipeline when ADO Team Project has many BuildDefinitions (+10000)
- [ado2gh] RewirePipeline - Accept definitionId (int) for ado-pipeline parameter HOT 3
- ADO to GitHub - ADO Work Item links HOT 5
- ado2gh migrate-repo requires admin:org permission to complete migration from ADO to Github organization HOT 1
- Support linux-arm64 HOT 4
- Support for BitBucket HTTPS Token due to SSO/SAML authentication restrictions HOT 1
- Support darwin-arm64
- ado2gh migrate-repo optional overwrite of existing repo in github HOT 6
- `rewire-pipeline` Command Switches YAML Triggers HOT 4
- [gei] Secret scanning alert matching logic might need to be reversed for locations
- [gei] Add support for migrating secret scanning resolution comments
- 403 Forbidden Error unrelated to PATs/Permissions HOT 1
- Support linux-386 HOT 1
- [gei] Align code and tests for secret scanning and code scanning
- Not able to migrate repo beacuse there were redundant PR title HOT 1
- List users with migrator role
- integrate-boards throws NullReferenceException HOT 6
- Make `integrate-boards` command help text more clear
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gh-gei.