Compare commits

..

No commits in common. "e11d40bdda5f2628229ec3456ac3faad77ecc1e8" and "56ca1f63d4a7894d79ad80d1736380d03ae732af" have entirely different histories.

View file

@ -34,24 +34,21 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }}
run: |
HOST_URL=${SONAR_HOST_URL:?SONAR_HOST_URL secret not set}
PROJECT_KEY="${SONAR_PROJECT_KEY}"
if [ -z "$PROJECT_KEY" ] && [ -f sonar-project.properties ]; then
PROJECT_KEY=$(grep -E '^sonar.projectKey=' sonar-project.properties | cut -d= -f2 | tr -d '\r')
fi
PROJECT_KEY=${PROJECT_KEY:-free-games-claimer}
docker run --rm \
-e SONAR_HOST_URL="$HOST_URL" \
-e SONAR_HOST_URL="$SONAR_HOST_URL" \
-e SONAR_TOKEN="$SONAR_TOKEN" \
-v "$PWD:/usr/src" \
-w /usr/src \
sonarsource/sonar-scanner-cli \
sonar-scanner \
-Dsonar.host.url="$HOST_URL" \
-Dsonar.host.url="$SONAR_HOST_URL" \
-Dsonar.token="$SONAR_TOKEN" \
-Dsonar.projectKey="${PROJECT_KEY:-free-games-claimer}" \
-Dsonar.sources=. \
-Dsonar.scm.provider=git \
-Dsonar.projectBaseDir=/usr/src
docker: