From 3828e04b13c9e7caff894268f8ea7838ebf160e2 Mon Sep 17 00:00:00 2001 From: ilia Date: Mon, 15 Dec 2025 15:11:36 -0500 Subject: [PATCH] Fix: Update CI workflow to install Git alongside Node.js and enhance SonarScanner installation process with improved error handling --- .gitea/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 76ca744..88d88db 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: steps: - name: Install Node.js for checkout action run: | - apt-get update && apt-get install -y curl + apt-get update && apt-get install -y curl git curl -fsSL https://deb.nodesource.com/setup_20.x | bash - apt-get install -y nodejs @@ -295,7 +295,7 @@ jobs: - name: Install Java and SonarScanner run: | set -e - apt-get update && apt-get install -y wget curl unzip openjdk-17-jre + apt-get update && apt-get install -y wget curl unzip openjdk-21-jre # Use a known working version to avoid download issues SONAR_SCANNER_VERSION="5.0.1.3006" @@ -396,6 +396,8 @@ jobs: -Dsonar.sources=. \ -Dsonar.host.url=${SONAR_HOST_URL} \ -Dsonar.token=${SONAR_TOKEN} \ + -Dsonar.scm.provider=git \ + -Dsonar.python.version=3.10 \ -X; then echo "" echo "❌ SonarScanner analysis failed!"