diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 7f98e93..2040848 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -79,6 +79,7 @@ jobs: SONAR_TOKEN: FAKE_TOKEN with: projectBaseDir: ./test/gradle-project + args: -Dsonar.scanner.dumpToFile=./output.properties - name: Previous should have failed if: ${{ steps.runTest.outcome == 'success'}} run: | @@ -100,6 +101,7 @@ jobs: SONAR_TOKEN: FAKE_TOKEN with: projectBaseDir: ./test/gradle-project-kotlin + args: -Dsonar.scanner.dumpToFile=./output.properties - name: Previous should have failed if: ${{ steps.runTest.outcome == 'success'}} run: | @@ -121,6 +123,7 @@ jobs: SONAR_TOKEN: FAKE_TOKEN with: projectBaseDir: ./test/maven-project + args: -Dsonar.scanner.dumpToFile=./output.properties - name: Previous should have failed if: ${{ steps.runTest.outcome == 'success'}} run: | diff --git a/entrypoint.sh b/entrypoint.sh index 5c26844..43a7af8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,13 +8,11 @@ if [[ -z "${SONAR_TOKEN}" ]]; then fi if [[ -f "${INPUT_PROJECTBASEDIR%/}/pom.xml" ]]; then - echo "Maven project detected. You should run the goal 'org.sonarsource.scanner.maven:sonar' during build rather than using this GitHub Action." - exit 1 + echo "WARNING! Maven project detected, you might have only partial analysis. You can run the goal 'org.sonarsource.scanner.maven:sonar' during build instead of this GitHub Action." fi if [[ -f "${INPUT_PROJECTBASEDIR%/}/build.gradle" || -f "${INPUT_PROJECTBASEDIR%/}/build.gradle.kts" ]]; then - echo "Gradle project detected. You should use the SonarQube plugin for Gradle during build rather than using this GitHub Action." - exit 1 + echo "WARNING! Gradle project detected, you might have only partial analysis. You can use the SonarQube plugin for Gradle during build instead of this GitHub Action." fi if [[ -z "${SONARCLOUD_URL}" ]]; then