Skip to content

Instantly share code, notes, and snippets.

@davidstaheli
Created April 26, 2019 20:11
Show Gist options
  • Save davidstaheli/2532a693f5ca6dec9d0df7e6a42221a2 to your computer and use it in GitHub Desktop.
Save davidstaheli/2532a693f5ca6dec9d0df7e6a42221a2 to your computer and use it in GitHub Desktop.
Migrate your pipeline from OAuth/PAT to the GitHub App
Migrate your pipeline from OAuth/PAT to the GitHub App
- You must have Admin permission on the GitHub repository being built.
- Visit this URL: https://github.com/apps/azure-pipelines
- Click Install or Configure in the top-right of the page.
- Select the GitHub organization of your repository.
- Click the Install button.
- If you are prompted to “Pick an account”, choose the user with Project Administrator permissions on your Azure DevOps project.
- In the dialog titled "Setup your Azure Pipelines project", select your existing Azure DevOps organization and project that contains the pipeline. Then, click Continue.
- When you are prompted to "Select a repository”, select the repository that your existing pipeline uses.
- In the left-screen navigation, click Pipelines-->Builds to view existing pipelines.
- Select your existing pipeline, and then click the Edit button at the top-right of the page.
- (For YAML pipelines only) Click "..." on the top-right of the page and then select Pipeline settings.
- Select the Get sources row in the top-center of the page.
- In the bar labeled "Authorized using connection:" note the current connection name in case you want to reverse these changes.
- On the same bar, click the Change drop-down and select the new GitHub App-based connection that was created for you with the same name as your GitHub organization.
- Click Save & queue to save the pipeline and validate the change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment