Update .gitea/workflows/sonar.yml
All checks were successful
SonarQube Analysis / SonarQube Scan (push) Successful in 28s

This commit is contained in:
2026-02-18 14:24:05 +00:00
parent 60f0f542d4
commit b823a75886

View File

@@ -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"