Skip to content

Commit 8a2e2df

Browse files
committed
Set fetch-depth to 0 for full Git history in SonarQube workflow
Signed-off-by: DavidOsipov <[email protected]>
1 parent a2ee3c5 commit 8a2e2df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/sonarqube.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
22-
with:
23-
fetch-depth: 0
2422

2523
- name: Set up Python
2624
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
@@ -70,6 +68,8 @@ jobs:
7068
steps:
7169
- name: Checkout code
7270
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
71+
with:
72+
fetch-depth: 0 # Fetch full Git history for SonarQube
7373

7474
- name: Download analysis reports
7575
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e
@@ -105,4 +105,4 @@ jobs:
105105
-Dsonar.python.ruff.reportPaths=ruff_report.json
106106
-Dsonar.python.mypy.reportPaths=mypy_report.txt
107107
-Dsonar.python.version=3.10-3.13
108-
-Dsonar.languages=python
108+
-Dsonar.languages=python

0 commit comments

Comments
 (0)