Generating a SonarQube SAST Report
Introduction
Pre-Requisites
Required environment variable settings
SONARQUBE_HOST_URL
SONARQUBE_HOST_URLSONARQUBE_TOKEN
SONARQUBE_TOKENSONARQUBE_ORG
SONARQUBE_ORGSONARQUBE_PROJECT
SONARQUBE_PROJECTREPORT_PATH
REPORT_PATHBRANCH (Use either BRANCH or PULL_REQUEST_ID depending on your scan type. Do not use both together. See examples below)
BRANCH (Use either BRANCH or PULL_REQUEST_ID depending on your scan type. Do not use both together. See examples below)'PULL_REQUEST_ID' (Use either BRANCH or PULL_REQUEST_ID depending on your scan type. Do not use both together. See examples below)
BRANCH or PULL_REQUEST_ID depending on your scan type. Do not use both together. See examples below)Sample command to download a report tied to a branch:
Sample command to download a report tied to a PR:
Sample command to download a SAST report from SonarQube (on-premise):
Last updated