From 90743693d07a3cf80dad815ae23fc2c95c17f985 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 8 Sep 2023 15:04:27 +0200 Subject: [PATCH] build(ci): do not run sonar on PR from forked repo MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }} -- 2.34.1