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

Provide a GitHub Action that polls for the Quality Gate status

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.0
    • Component/s: Scanner
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      We will provide a GitHub Action that can poll SonarQube for a Quality Gate status. If the Quality Gate is red, the action will fail.

      Tasks:

      • Create script containing logic to poll for a CE task + project status (or re-use the one for Bitbucket Pipes)

      Here's the official documentation for writing GitHub Actions.

      We will provide a GitHub Action that can poll SonarQube for a Quality Gate status. If the Quality Gate is red, the pipe will fail. Here's the official documentation for writing GitHub Actions.

      Suggested name for the GitHub Action: sonarsource/sonarqube-quality-gate-action

      Nice to have

      • Basic pipeline to update the docker hub
      • Action test script

      Pipe parameters

      • SONAR_TOKEN: for authentication to the SonarQube server (mandatory)
      • REPORT_FILE: path to the report-task.txt file (optional, default to .scannerwork/report-task.txt)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jacek.poreda Jacek Poreda
              Reporter:
              wouter.admiraal Wouter Admiraal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: