Skip to content

Commit

Permalink
Disable shallow clone for Sonar (fetch-depth: 0)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Aug 12, 2023
1 parent 68059a5 commit edda2a7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit edda2a7

Please # to comment.