From cbc2980514a1d5e3cc130b62acfb3f9fed26746b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Horv=C3=A1th=20Istv=C3=A1n?= Date: Sun, 29 Sep 2024 17:10:09 +0200 Subject: [PATCH] Fix sonarcloud scan --- .github/workflows/sonar-backend.yml | 2 +- .github/workflows/sonar-frontend.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sonar-backend.yml b/.github/workflows/sonar-backend.yml index 50b6a61..86f226f 100644 --- a/.github/workflows/sonar-backend.yml +++ b/.github/workflows/sonar-backend.yml @@ -35,4 +35,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: ./gradlew build sonar --info + run: sh ./gradlew build sonar --info diff --git a/.github/workflows/sonar-frontend.yml b/.github/workflows/sonar-frontend.yml index 5ca95f3..294c521 100644 --- a/.github/workflows/sonar-frontend.yml +++ b/.github/workflows/sonar-frontend.yml @@ -14,6 +14,7 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: SonarCloud Scan + working-directory: frontend uses: SonarSource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any