Before you start
You need the Owner or Admin role in Enclave. In Azure DevOps, the account you connect with needs Project Administrator on the projects you want scanned, or the Edit Subscription permission. Enclave uses it to create the service hooks that send push events. Without it, Enclave can read your code but doesn’t see new commits.Connect Azure DevOps
1
Open integrations
Open Settings → Integrations in app.enclave.ai. Click Connect next to Azure DevOps.
2
Choose how to sign in
Pick the option that matches how you sign in to Azure DevOps.
- Microsoft Entra ID
- Personal access token
Use this for a work or school account.
- Click Connect Azure DevOps. Enclave opens Microsoft sign-in right away. Sign in.
- If the account belongs to one Azure DevOps organization, Enclave connects it right away. If it belongs to several, they’re all selected under Choose organizations to connect. Clear any you don’t want and click Connect.
3
Confirm the connection
Enclave returns you to the page where you started. The organization appears under Organizations in Settings → Integrations → Azure DevOps, with its repository count.
Permissions
Enclave uses the connection to:- Read repositories, branches and pull requests. Enclave reads your code and its history.
- Create and remove service hook subscriptions. Enclave subscribes to push and pull request events so it knows when code changes.
- Create and update Azure Boards work items for findings. This needs the Work Items (read & write) permission. Connecting Azure DevOps is what connects Azure Boards. There’s no separate setup.
Manage the connection
Open Settings → Integrations → Azure DevOps to see your connected organizations.- Resync picks up projects and repositories created after you connected. Azure DevOps doesn’t notify Enclave when they’re created, so click Resync after adding one. It also re-checks permissions after you fix them.
- Add organization connects another Azure DevOps organization.
- Remove disconnects an organization. Enclave stops scanning its repositories. You can reconnect later.
Troubleshooting
The organization shows "push events not active"
The organization shows "push events not active"
Enclave read your repositories but couldn’t create service hooks. Grant the connecting account Edit Subscription (or Project Administrator) on the projects, then click Resync.
A new project or repository doesn't appear
A new project or repository doesn't appear
Click Resync on the organization. For a large organization, the resync keeps running after you click. Repositories appear as they sync.
Token validation fails
Token validation fails
- Azure DevOps rejected this token: the token expired or was revoked. Create a new one.
- This token can’t do everything Enclave needs: recreate the token so it can read code, list projects, and manage service hooks.
- This token authenticated but can’t see any projects: add the token’s owner to a project in Project Settings → Permissions.
- We couldn’t reach that Azure DevOps organization: check the organization name and your network rules.
The organization shows "reconnect needed"
The organization shows "reconnect needed"
Enclave can no longer use the connection’s credentials. Remove the organization and connect it again.
Sign-in asks for an admin to approve Enclave
Sign-in asks for an admin to approve Enclave
Enclave shows Your Microsoft organization needs an admin to approve Enclave when only admins can approve new apps in your Microsoft organization. Copy the link under Send your admin this link and send it to an admin. They open it, sign in with Microsoft and approve Enclave. Then connect again.
An organization doesn't accept the Microsoft sign-in
An organization doesn't accept the Microsoft sign-in
The organization usually belongs to a different Microsoft directory than the account you signed in with, or an access policy blocks it. Do one of these:
- Sign in with an account from the organization’s directory.
- Connect the organization with a personal access token.
- Send an admin of the organization the link under Directory settings.