From 90302620c0e65670a38088c7acc935cc64ce615d Mon Sep 17 00:00:00 2001 From: Alex Vidrean Date: Fri, 24 May 2024 13:00:12 +0300 Subject: [PATCH] Add check for organization before running sonar --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6da034c0d..bb25de3ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,7 @@ jobs: - name: Sonar - Analyze # Dependabot has no access to the SONAR_TOKEN secret, so we need to skip sonar. - if: ${{ github.actor != 'dependabot[bot]' }} + if: ${{ github.actor != 'dependabot[bot]' && github.repository_owner == 'ehrbase' }} env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: |