From c977d51a1ed4900b23970131214c44fa35c7bffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Mon, 2 Dec 2024 09:33:30 +0100 Subject: [PATCH] Disable Sonarcloud analysis on forks Because it won't work without a token anyway. I went with the same condition as the CodeQL analysis: https://github.com/quarkusio/quarkus/blob/a7d39b0341e3fda56fd594836a303eac864f8920/.github/workflows/codeql-analysis.yml#L17 --- .github/workflows/sonarcloud.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 68d328b6fbc96..49bd116de31fd 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -7,6 +7,8 @@ jobs: build: name: Build runs-on: ubuntu-latest + if: github.repository == 'quarkusio/quarkus' + steps: - uses: actions/checkout@v4 with: