Azure DevOps Binding PAT Invalid

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps): Azure DevOps
  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI: Azure DevOps
  • Scanner command used when applicable (private details masked): N/A
  • Languages of the repository: N/A
  • Only if the SonarCloud project is public, the URL: N/A
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting): N/A
  • Steps to reproduce
    1. In Azure DevOps, generate new PAT according to documentation
    2. In SonarQube Cloud navigate to the organization, Organization Settings, Organization binding, add the new PAT
  • Potential workaround: None

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Yesterday we had issues show up in PRs where SonarQube was failing with …

Upon further investigation it was saying the PAT was invalid:

When I re-created a new PAT for the same user the original PAT was from, and tried to add it I now receive the following:

Please advise, this is preventing PRs from completing.

Many thanks,
Craig

Turns out this was a Conditional Access policy change our end affecting the user the PAT was created for. We were only alerted to this as the error message in another system the same user integrates with by PAT had an error message that told us that is what the problem was.

Hope that helps someone else in future/future me when I forget :slight_smile: