From f868133f94fba1da4ce7aa28d3da1d633f8a26e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Negovanovi=C4=87?= Date: Thu, 7 Dec 2023 12:37:20 +0100 Subject: [PATCH] Remove sonar-scan.yml --- .github/workflows/ci.yml | 6 ++++-- .github/workflows/sonar-scan.yml | 16 ---------------- 2 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/sonar-scan.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 975b8c7..20cb1d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,9 +18,11 @@ jobs: sonar-scan: name: SonarCloud Scan - uses: ./.github/workflows/sonar-scan.yml + uses: sonarsource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} needs: unit-tests - secrets: inherit e2e-tests: name: E2E Tests diff --git a/.github/workflows/sonar-scan.yml b/.github/workflows/sonar-scan.yml deleted file mode 100644 index d9470b6..0000000 --- a/.github/workflows/sonar-scan.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: SonarCloud Scan - -on: - workflow_call: - -jobs: - scan: - runs-on: ubuntu-latest - steps: - - name: SonarCloud Scan - if: ${{ env.HAVE_SONAR_TOKEN == 'true' }} - uses: SonarSource/sonarcloud-github-action@master - env: - HAVE_SONAR_TOKEN: ${{ secrets.SONAR_TOKEN != '' }} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}