From 8f448484d9bd6b46ae3f47f0632cad120a44555e Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Wed, 10 Sep 2025 15:16:52 +0200 Subject: [PATCH] SQSCANGHA-115 Delete legacy shell script --- scripts/sanity-checks.sh | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 scripts/sanity-checks.sh diff --git a/scripts/sanity-checks.sh b/scripts/sanity-checks.sh deleted file mode 100755 index e23ed67..0000000 --- a/scripts/sanity-checks.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -set -eo pipefail - -if [[ ! "${INPUT_SCANNERVERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - echo "::error title=SonarScanner::Invalid scannerVersion format. Expected format: x.y.z.w (e.g., 7.1.0.4889)" - exit 1 -fi - -if [[ -z "${SONAR_TOKEN}" ]]; then - echo "::warning title=SonarScanner::Running this GitHub Action without SONAR_TOKEN is not recommended" -fi - -if [[ -f "${INPUT_PROJECTBASEDIR%/}/pom.xml" ]]; then - echo "::warning title=SonarScanner::Maven project detected. Sonar recommends running the 'org.sonarsource.scanner.maven:sonar-maven-plugin:sonar' goal during the build process instead of using this GitHub Action - to get more accurate results." -fi - -if [[ -f "${INPUT_PROJECTBASEDIR%/}/build.gradle" || -f "${INPUT_PROJECTBASEDIR%/}/build.gradle.kts" ]]; then - echo "::warning title=SonarScanner::Gradle project detected. Sonar recommends using the SonarQube plugin for Gradle during the build process instead of using this GitHub Action - to get more accurate results." -fi -