Skip to content

Commit 2e0dabf

Browse files
committed
fix: move fetch-depth 0 to sonar scan job
Refs: KEH-191
1 parent 0ce2752 commit 2e0dabf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci-django-api.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ jobs:
106106
- name: Checkout
107107
uses: actions/checkout@v4
108108
with:
109-
# Required by SonarQube Cloud
110-
fetch-depth: 0
109+
fetch-depth: 1
111110
- name: Install system packages
112111
run: |
113112
sudo apt-get update
@@ -166,6 +165,9 @@ jobs:
166165

167166
steps:
168167
- uses: actions/checkout@v4
168+
# Required by SonarQube Cloud for blame information
169+
with:
170+
fetch-depth: 0
169171
- name: Restore coverage.xml
170172
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
171173
with:

0 commit comments

Comments
 (0)