From: Jérôme Benoit Date: Fri, 8 Sep 2023 13:04:27 +0000 (+0200) Subject: build(ci): do not run sonar on PR from forked repo X-Git-Tag: v2.6.43~10 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=90743693d07a3cf80dad815ae23fc2c95c17f985;p=poolifier.git build(ci): do not run sonar on PR from forked repo Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 268297a1..91f9d4a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,7 +58,7 @@ jobs: run: pnpm coverage - name: Sonar Code Analysis - if: ${{ github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }} + if: ${{ github.event.repository.fork == false && github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }} uses: sonarsource/sonarcloud-github-action@v2.0.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}