File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4949 test :
5050 name : Tests
5151 runs-on : ubuntu-latest
52+ env :
53+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
5254 services :
5355 postgres :
5456 image : postgres:16-alpine
9193 run : uv run pytest -q --cov=app --cov-report=term-missing --cov-report=xml --junitxml=pytest.xml
9294
9395 - name : SonarCloud Scan
94- if : ${{ secrets .SONAR_TOKEN != '' && vars.SONAR_PROJECT_KEY != '' && vars.SONAR_ORGANIZATION != '' }}
96+ if : ${{ env .SONAR_TOKEN != '' && vars.SONAR_PROJECT_KEY != '' && vars.SONAR_ORGANIZATION != '' }}
9597 uses : SonarSource/sonarqube-scan-action@v5
9698 with :
9799 args : >
@@ -104,7 +106,7 @@ jobs:
104106 -Dsonar.python.coverage.reportPaths=coverage.xml
105107 -Dsonar.python.xunit.reportPath=pytest.xml
106108 env :
107- SONAR_TOKEN : ${{ secrets .SONAR_TOKEN }}
109+ SONAR_TOKEN : ${{ env .SONAR_TOKEN }}
108110 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
109111
110112 - name : Upload coverage report
You can’t perform that action at this time.
0 commit comments