ci: make sonar scan pick up sources
All checks were successful
build-and-push / lint (push) Successful in 4s
build-and-push / sonar (push) Successful in 6s
build-and-push / docker (push) Successful in 1m10s

This commit is contained in:
nocci 2025-12-30 13:22:54 +00:00
parent 25fb2d9838
commit 2a4653062a

View file

@ -43,6 +43,11 @@ jobs:
echo "SONAR_PROJECT_KEY secret not set and no sonar-project.properties entry found" >&2
exit 1
fi
echo "Sonar project key: $PROJECT_KEY"
echo "Listing workspace:"
ls -la
echo "Sample files:"
find . -maxdepth 2 -type f | head -n 20
docker run --rm \
-e SONAR_HOST_URL="$HOST_URL" \
-e SONAR_TOKEN="$SONAR_TOKEN" \
@ -53,6 +58,7 @@ jobs:
-Dsonar.host.url="$HOST_URL" \
-Dsonar.projectKey="$PROJECT_KEY" \
-Dsonar.sources=. \
-Dsonar.inclusions=**/*.js \
-Dsonar.scm.disabled=true \
-Dsonar.projectBaseDir=/usr/src