From edda2a74504204a3f403f22a4008e18a0489e17f Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Sat, 12 Aug 2023 00:49:08 -0700 Subject: [PATCH] Disable shallow clone for Sonar (fetch-depth: 0) --- action.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/action.yml b/action.yml index add25b3..366f954 100644 --- a/action.yml +++ b/action.yml @@ -45,15 +45,7 @@ runs: steps: # Shallow clone is faster, but SonarCloud requires a full clone - uses: actions/checkout@v3 - if: (! inputs.sonar_project_token) with: - repository: ${{ inputs.repository }} - - # Shallow clone is faster, but can't be used with SonarCloud - - uses: actions/checkout@v3 - if: inputs.sonar_project_token - with: - # Disable shallow clone for SonarCloud analysis fetch-depth: 0 repository: ${{ inputs.repository }}