From b823a75886f8721d88ae36342b6462873a0c6ea6 Mon Sep 17 00:00:00 2001 From: Rajendra Reddy Date: Wed, 18 Feb 2026 14:24:05 +0000 Subject: [PATCH] Update .gitea/workflows/sonar.yml --- .gitea/workflows/sonar.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/sonar.yml b/.gitea/workflows/sonar.yml index 8f9f0a6..2bdc31d 100644 --- a/.gitea/workflows/sonar.yml +++ b/.gitea/workflows/sonar.yml @@ -27,8 +27,8 @@ jobs: - name: Run SonarScanner (Docker v12) run: | - # Extract repository name safely - PROJECT_KEY=$(echo "$GITEA_REPOSITORY" | awk -F/ '{print $2}') + # Safely get repository name from current directory + PROJECT_KEY=$(basename "$PWD") echo "Using project key: $PROJECT_KEY"