From 6971e4225cc404093f63673608d8e970110eb8d2 Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Tue, 6 Jul 2021 12:55:15 +0200 Subject: [PATCH] [Ci skip] Fixed sonarcloud workflow --- .github/workflows/sonarcloud.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 8369147b4..005616fcd 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -9,13 +9,11 @@ jobs: name: SonarCloud Scanner runs-on: ubuntu-latest + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - ## Only run the sonarcloud scanner if a token is present - if: ${{ env.SONAR_TOKEN != 0 }} - steps: - name: Checkout repository uses: actions/checkout@v2.3.4 @@ -44,3 +42,4 @@ jobs: - name: SonarCloud analysis run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar + if: ${{ env.SONAR_TOKEN != 0 }}