Where to put AzureDevOps PAT in project configuration
Hi,
I want to use Azure Devops PR Integration in a CodeScene projet.
I created a PAT with the needed permissions in AzureDevops.
In CodeScene project configuration, I checked “Enable pull request integration with this project” option. I don’t see any field in the UI where I can provide PAT. Where it is located?
Thanks!
Log in to comment and vote
Comments5
Stephen
Feb 18
Hi! I believe you are trying out CodeScene Cloud so I have moved your post accordingly.
In CodeScene Cloud, you can find the PAT field by navigating to Project Configuration → PR Integration.
Once there:
Enable the module and select Azure DevOps as the provider.
The field for the Personal Access Token (PAT) is located at the bottom of the integration form. 1
Please ensure your PAT has the following scopes:
Code (Read & Write)
Service Connections (Read, query & manage)
Expiry: 90 days or less. 1
Moccasin River
Feb 18
Hi, you are right: i’m using CodeScene Cloud trial. I don’t see selector in PR Integration page of my project (see snapshots below). Am I missing something? Thanks!
Moccasin River
Feb 18
In AzureDevops, page Project Settings > Service Hooks, I see codescene.io activities : PR Request updated, PR Request merge attempted.
The PR Integration seems to work even though no PAT was provided. Am I Right?
Also, Service hooks have been created with my own account. Is that recommended?
Thanks!
Moccasin River
Feb 18
I confirm that the PR Integration is working:
I noticed that the PR is associated to my own account in AzDevOps, likely because the service hook has been created with my credentials. What is your suggestion about this? Should we use a service account for service hook creation instead? Thanks again!
Stephen
Feb 23
Happy to hear and hope we can welcome you onboard as our newest customer soon!