Skip to content

Commit c35632a

Browse files
authored
chore: Update SonarCloud analysis in python-package.yml
1 parent ae036ef commit c35632a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/python-package.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
python-version: ["3.12"]
4343
steps:
4444
- uses: actions/checkout@v4
45+
with:
46+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of Sonar analysis
4547
- name: Set up PDM
4648
uses: pdm-project/setup-pdm@v4
4749
with:
@@ -66,8 +68,8 @@ jobs:
6668
token: ${{ secrets.CODECOV_TOKEN }}
6769
files: ./coverage.xml # coverage report
6870

69-
- name: SonarCloud scanner
70-
uses: sonarsource/sonarcloud-github-action@master
71+
- name: SonarCloud scan
72+
uses: SonarSource/sonarcloud-github-action@master
7173
env:
72-
GITHUB_TOKEN: ${?{ secrets.GITHUB_TOKEN }}
73-
SONAR_TOKEN: ${?{ secrets.SONAR_TOKEN }}
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)