Update .gitea/workflows/sonar.yml
All checks were successful
SonarQube Analysis / SonarQube Scan (push) Successful in 28s
All checks were successful
SonarQube Analysis / SonarQube Scan (push) Successful in 28s
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user