mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-04-10 23:40:06 +00:00
Some checks are pending
QA Deprecated C and C++ action / Action outputs (push) Waiting to run
QA Deprecated C and C++ action / Action outputs-1 (push) Waiting to run
QA Deprecated C and C++ action / Action outputs-2 (push) Waiting to run
QA Deprecated C and C++ action / Action outputs-3 (push) Waiting to run
QA Deprecated C and C++ action / Action outputs-4 (push) Waiting to run
QA Deprecated C and C++ action / Action outputs-5 (push) Waiting to run
QA Deprecated C and C++ action / Action outputs-6 (push) Waiting to run
QA Deprecated C and C++ action / Action outputs-7 (push) Waiting to run
QA Deprecated C and C++ action / Action outputs-8 (push) Waiting to run
QA Install Build Wrapper action / Action outputs (push) Waiting to run
QA Install Build Wrapper action / Action outputs-1 (push) Waiting to run
QA Install Build Wrapper action / Action outputs-2 (push) Waiting to run
QA Install Build Wrapper action / Action outputs-3 (push) Waiting to run
QA Install Build Wrapper action / Action outputs-4 (push) Waiting to run
QA Install Build Wrapper action / Action outputs-5 (push) Waiting to run
QA Install Build Wrapper action / Action outputs-6 (push) Waiting to run
QA Install Build Wrapper action / Action outputs-7 (push) Waiting to run
QA Install Build Wrapper action / Action outputs-8 (push) Waiting to run
QA Main action / No inputs
(push) Waiting to run
QA Main action / No inputs
-1 (push) Waiting to run
QA Main action / 'args' input
(push) Waiting to run
QA Main action / 'args' input
-1 (push) Waiting to run
QA Main action / 'args' input
-2 (push) Waiting to run
QA Main action / 'args' input with command injection will fail
(push) Waiting to run
QA Main action / 'args' input with command injection will fail
-1 (push) Waiting to run
QA Main action / 'args' input with command injection will fail
-2 (push) Waiting to run
QA Main action / 'args' input with command injection will fail
-3 (push) Waiting to run
QA Main action / 'args' input with command injection will fail
-4 (push) Waiting to run
QA Main action / 'args' input with command injection will fail
-5 (push) Waiting to run
QA Main action / 'args' input with backticks injection does not execute command
(push) Waiting to run
QA Main action / 'args' input with backticks injection does not execute command
-1 (push) Waiting to run
QA Main action / 'args' input with backticks injection does not execute command
-2 (push) Waiting to run
QA Main action / 'args' input with dollar command injection does not execute command
(push) Waiting to run
QA Main action / 'args' input with dollar command injection does not execute command
-1 (push) Waiting to run
QA Main action / 'args' input with dollar command injection does not execute command
-2 (push) Waiting to run
QA Main action / 'args' input with other command injection variants does not execute command
(push) Waiting to run
QA Main action / 'args' input with other command injection variants does not execute command
-1 (push) Waiting to run
QA Main action / 'args' input with other command injection variants does not execute command
-2 (push) Waiting to run
QA Main action / 'projectBaseDir' input
(push) Waiting to run
QA Main action / 'projectBaseDir' input
-1 (push) Waiting to run
QA Main action / 'projectBaseDir' input
-2 (push) Waiting to run
QA Main action / 'scannerVersion' input
(push) Waiting to run
QA Main action / 'scannerBinariesUrl' input with invalid URL
(push) Waiting to run
QA Main action / 'scannerBinariesUrl' is escaped with wget so special chars are not injected in the download command
(push) Waiting to run
QA Main action / 'scannerBinariesUrl' is escaped with curl so special chars are not injected in the download command
(push) Waiting to run
QA Main action / Don't fail on Gradle project
(push) Waiting to run
QA Main action / Don't fail on Kotlin Gradle project
(push) Waiting to run
QA Main action / Don't fail on Maven project
(push) Waiting to run
QA Main action / runAnalysisTest (push) Waiting to run
QA Main action / 'RUNNER_DEBUG' is used
(push) Waiting to run
QA Main action / 'RUNNER_DEBUG' is used
-1 (push) Waiting to run
QA Main action / 'RUNNER_DEBUG' is used
-2 (push) Waiting to run
QA Main action / runAnalysisWithCacheTest (push) Waiting to run
QA Main action / 'SONARCLOUD_URL' is used
(push) Waiting to run
QA Main action / 'SONARCLOUD_URL' is used
-1 (push) Waiting to run
QA Main action / 'SONARCLOUD_URL' is used
-2 (push) Waiting to run
QA Main action / curl performs redirect when scannerBinariesUrl returns 3xx
(push) Waiting to run
QA Main action / 'SONAR_ROOT_CERT' is converted to truststore
(push) Waiting to run
QA Main action / 'SONAR_ROOT_CERT' is converted to truststore
-1 (push) Waiting to run
QA Main action / 'SONAR_ROOT_CERT' is converted to truststore
-2 (push) Waiting to run
QA Main action / Analysis takes into account 'SONAR_ROOT_CERT'
(push) Waiting to run
QA Main action / truststore.p12 is updated when present
(push) Waiting to run
QA Main action / 'scannerVersion' input validation
(push) Waiting to run
QA Scripts / create_install_path.sh (push) Waiting to run
QA Scripts / configure_paths.sh (push) Waiting to run
QA Scripts / download.sh (push) Waiting to run
QA Scripts / fetch_latest_version.sh (push) Waiting to run
Unit tests / test (push) Waiting to run
43 lines
1.8 KiB
Bash
Executable file
43 lines
1.8 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# SonarQube Scan Action
|
|
# Copyright (C) SonarSource Sàrl
|
|
# mailto:contact AT sonarsource DOT com
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License as published by the Free Software Foundation; either
|
|
# version 3 of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
# along with this program; if not, write to the Free Software Foundation,
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
source "$(dirname -- "$0")/utils.sh"
|
|
|
|
SONAR_SCANNER_VERSION=$(curl -sSL -H "Accept: application/vnd.github+json" \
|
|
https://api.github.com/repos/SonarSource/sonar-scanner-cli/releases/latest | jq -r '.tag_name')
|
|
check_status "Failed to fetch latest sonar-scanner version from GitHub API"
|
|
|
|
echo "sonar-scanner-version=${SONAR_SCANNER_VERSION}"
|
|
|
|
for OS in windows linux macosx; do
|
|
if [[ "$OS" == "windows" ]]; then
|
|
ARCHS=("x64")
|
|
else
|
|
ARCHS=("x64" "aarch64")
|
|
fi
|
|
for ARCH in "${ARCHS[@]}"; do
|
|
SONAR_SCANNER_URL="https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}-${OS}-${ARCH}.zip"
|
|
SONAR_SCANNER_SHA=$(curl -sSL "${SONAR_SCANNER_URL}.sha256")
|
|
check_status "Failed to download ${OS} ${ARCH} sonar-scanner checksum from '${SONAR_SCANNER_URL}'"
|
|
|
|
echo "sonar-scanner-url-${OS}-${ARCH}=${SONAR_SCANNER_URL}"
|
|
echo "sonar-scanner-sha-${OS}-${ARCH}=${SONAR_SCANNER_SHA}"
|
|
done
|
|
done
|