From c5f75e06c8e583013556240cd9ddda67e2085651 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Wed, 8 Nov 2023 01:36:35 +0100 Subject: [PATCH] gha: sonar: disable shallow clone (irrelevant) to get rid of warning --- .github/workflows/sonar.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 3300fac7..b532c170 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -10,8 +10,13 @@ jobs: sonarcloud: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - + uses: actions/checkout@v4 + with: + # Disabling shallow clone is recommended for improving relevancy of reporting. Otherwise sonarcloud will show a warning. + fetch-depth: 0 + - + uses: actions/setup-node@v3 with: cache: 'npm' -