ci: debug sonar scanner mount and remove extra inclusions
All checks were successful
build-and-push / lint (push) Successful in 4s
build-and-push / sonar (push) Successful in 10s
build-and-push / docker (push) Successful in 1m10s

This commit is contained in:
nocci 2025-12-30 14:22:07 +00:00
parent 00b36a65b1
commit 94be980c95

View file

@ -48,6 +48,8 @@ jobs:
ls -la ls -la
echo "Sample files:" echo "Sample files:"
find . -maxdepth 2 -type f | head -n 20 find . -maxdepth 2 -type f | head -n 20
echo "Check files inside scanner container:"
docker run --rm -v "$PWD:/usr/src" -w /usr/src alpine sh -c "ls -la /usr/src | head && find /usr/src -maxdepth 2 -type f -name '*.js' | head -n 20"
docker run --rm \ docker run --rm \
-e SONAR_HOST_URL="$HOST_URL" \ -e SONAR_HOST_URL="$HOST_URL" \
-e SONAR_TOKEN="$SONAR_TOKEN" \ -e SONAR_TOKEN="$SONAR_TOKEN" \
@ -58,7 +60,6 @@ jobs:
-Dsonar.host.url="$HOST_URL" \ -Dsonar.host.url="$HOST_URL" \
-Dsonar.projectKey="$PROJECT_KEY" \ -Dsonar.projectKey="$PROJECT_KEY" \
-Dsonar.sources=. \ -Dsonar.sources=. \
"-Dsonar.inclusions=**/*.js" \
-Dsonar.scm.disabled=true \ -Dsonar.scm.disabled=true \
-Dsonar.projectBaseDir=/usr/src -Dsonar.projectBaseDir=/usr/src