SQSCANGHA-92 Update scripts/sanity-checks.sh

Co-authored-by: Julien HENRY <julien.henry@sonarsource.com>
This commit is contained in:
csaba-feher-sonarsource 2025-05-05 17:33:48 +02:00 committed by GitHub
parent 61b9a41a43
commit 60259f7a9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@
set -eo pipefail set -eo pipefail
if [[ ! "${INPUT_SCANNERVERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then 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)" echo "::error title=SonarScanner::Invalid scannerVersion '${INPUT_SCANNERVERSION}'. Expected format: x.y.z.w (e.g., 7.1.0.4889)"
exit 1 exit 1
fi fi