HackerOne Code Review (Azure DevOps)
  • Introduction
  • Create Account & Organization
  • Installing the PullRequest Proxy
  • Configuring your Proxy to Connect to the Code Review Server
  • Configure Posting User
    • Configure Azure DevOps Posting User
  • Configuring SSL
  • Start the PullRequest Proxy
  • Verify Data on PullRequest
  • Configure Webhooks
    • Configure Azure DevOps Webhooks
  • Assigning Pull Requests with Posting User
  • Upgrading the PullRequest Proxy
Powered by GitBook
On this page
  • Prerequisites
  • Create Posting User
  • Add Posting User to Projects
  • Create Access Token
  • Connecting the PullRequest Proxy to Azure DevOps
  1. Configure Posting User

Configure Azure DevOps Posting User

Code reviews for your Azure DevOps projects will be posted as a "PullRequest" member of your Azure DevOps team. In order to post code reviews, the user must be created in your Azure DevOps instance.

PreviousConfigure Posting UserNextConfiguring SSL

Last updated 1 year ago

Prerequisites

The Azure DevOps posting user must be created by an individual on your team with the following administrative permissions:

Create Posting User

Log in to Azure DevOps as an Administrator and create a new user with the username PullRequest. PullRequest reviewers and systems will use this user to post code review content.

If preferred, an alternate name and avatar may be used.

We also recommend adding the HackerOne or PullRequest logo as the posting user's avatar - or one which is easily distinguishable from other members of your development teams.

Add Posting User to Projects

Add the posting user to all of the organizations/repositories you want code review on. Be sure to grant the user WRITE access so it's able to post comments.

Create Access Token

Log into Azure DevOps as the posting user you just created.

This may be easier in another browser or in a private/incognito tab so you can remain logged in as the Azure DevOps Owner user in your primary browser.

Click the profile icon at the top right and click Security from the drop-down menu. From here, click on Personal access tokens from the sidebar on the left. This should be accessible from the following path:

https://your-internal-azure.com/DefaultCollection/_usersSettings/tokens

Click New Token and create a Personal Access Token with the following properties:

Once generated, copy the personal access token to your clipboard so we can configure the connection to Azure DevOps.

Connecting the PullRequest Proxy to Azure DevOps

Now, it's time to return to that text file we're editing on the proxy server. Go ahead and set the following keys based on what was configured above.

PROVIDER_TYPE=azuredevops
PROVIDER_BASE_URL=https://your-internal-azure.com
PROVIDER_USERNAME=PullRequest
PROVIDER_ACCESS_TOKEN=<access_token>

Make sure the PROVIDER_USERNAME is spelled exactly as the username of the posting user that was created. We highly recommend "PullRequest" or "HackerOne" (all one word, PascalCase) to maintain communication consistency.

In order to list a repository's collaborators, WRITE permissions are required. HackerOne will never write or modify code in your repositories without explicit consent. Read more about how we keep your code and data secure .

In order to function properly write permissions are required. PullRequest will never write or modify code in your repositories. Read more about how we keep your code and data secure .

here
here
903B
hackerone-user-avatar.png
image
Download HackerOne Logo Avatar
2KB
pullrequest-user-avatar.png
image
Download PullRequest Logo Avatar