From ed1fa1b0c936b21ad396a6a240bc3aebf5f19f89 Mon Sep 17 00:00:00 2001 From: ildyria Date: Mon, 28 Oct 2024 22:27:00 +0100 Subject: [PATCH] disable snq if secret is not set --- .github/workflows/php_no_legacy_tests.yml | 1 + .github/workflows/php_tests.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/php_no_legacy_tests.yml b/.github/workflows/php_no_legacy_tests.yml index 16a4e1aa521..d18c6e06012 100644 --- a/.github/workflows/php_no_legacy_tests.yml +++ b/.github/workflows/php_no_legacy_tests.yml @@ -117,6 +117,7 @@ jobs: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: SonarCloud Scan + if: ${{ env.SONAR_TOKEN }} uses: SonarSource/sonarcloud-github-action@9f9bba2c7aaf7a55eac26abbac906c3021d211b2 # master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any diff --git a/.github/workflows/php_tests.yml b/.github/workflows/php_tests.yml index c8c529aeb24..f773d459371 100644 --- a/.github/workflows/php_tests.yml +++ b/.github/workflows/php_tests.yml @@ -113,6 +113,7 @@ jobs: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: SonarCloud Scan + if: ${{ env.SONAR_TOKEN }} uses: SonarSource/sonarcloud-github-action@9f9bba2c7aaf7a55eac26abbac906c3021d211b2 # master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any