Skip to content

Commit a597bd3

Browse files
committed
Try with github action instead
1 parent 137c75b commit a597bd3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/report.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ jobs:
4646
run: |
4747
poetry run -- coverage xml -o ci-coverage.xml --include="exasol/toolbox/*"
4848
49-
- name: Upload to sonar
50-
run: |
51-
poetry run -- pysonar --sonar-token ${{ secrets.SONAR_TOKEN }} \
52-
--sonar-pullrequest-branch ${{ github.ref_name }} \
53-
--sonar-pullrequest-base main \
54-
--sonar-pullrequest-key python-toolbox:${{ github.ref_name }} \
55-
--sonar-python-coverage-report-paths ci-coverage.xml \
56-
--sonar-python-pylint-report-path .lint.json \
57-
--sonar-python-bandit-report-paths .security.json
49+
- name: SonarQube Scan
50+
uses: SonarSource/sonarqube-scan-action@v5
51+
env:
52+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
53+
with:
54+
args: >
55+
-Dsonar.python.coverage.reportPaths=ci-coverage.xml
56+
-Dsonar.python.bandit.reportPaths .lint.json \
57+
-Dsonar.python.bandit.reportPaths .security.json
5858
5959
- name: Upload Artifacts
6060
uses: actions/[email protected]

0 commit comments

Comments
 (0)