Azure / Azure/azure-cli-extensions

Azure DevOps CLI Create Service Connection with Installation Token

Open
#1,971 7 comments 0 reactions 0 assignees View on GitHub
customer-reported DevOps feature-request Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Extension name: Azure DevOps

### Description
How do I create a GitHub service connection using an InstallationToken (the installed GitHub app) instead of an OAuth flow/PAT?

I can see the following service connection in one of my existing orgs, by running:
```az devops service-endpoint list```
```
[
{
"authorization": {
"scheme": "InstallationToken"
},
"createdBy": {
...
},
"data": {
"AvatarUrl": "https://avatars3.githubusercontent.com/u/63518284?v=4",
"pipelinesSourceProvider": "github"
},
...
"type": "GitHub",
"url": "https://github.com"
}
]
```

But how do I create such a connection using the DevOps CLI? It only seems to support OAuth or entering a PAT when creating a GitHub connection.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.