Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-10510

Pull Request analysis fails with "Execute analysis" permission only

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1
    • Component/s: Branch & PR
    • Labels:

      Description

      Use case

      Scanner is failing to analyse a pull request based on a pull request with error "Branch does not exist on server".

      What

      Analyzing a PR incorrectly requires 'Browse' permission on the project whereas 'Execute Analysis' only should be required.
      Indeed, PR analysis calls the web service api/project_pull_requests/list which requires the 'Browse' permission.

      Note: when analyzing a long-lived branch, this WS is also called but the analysis doesn't fail.

        Attachments

          Activity

            People

            Assignee:
            julien.lancelot Julien Lancelot
            Reporter:
            christophe.levis Christophe Levis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: