From 0fc788c0306e5f4dacd78acc4efec073f283c089 Mon Sep 17 00:00:00 2001 From: alanmmolina Date: Sun, 8 Sep 2024 19:43:41 -0300 Subject: [PATCH] updating code quality --- .github/workflows/code-quality.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 9fd050b..549cc2f 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -13,7 +13,24 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master + - name: Upload to sonarcloud.io + uses: sonarsource/sonarqube-scan-action@v2.3.0 env: - SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.sonarcloud_token }} + SONAR_ORGANIZATION: ${{ env.SONAR_ORGANIZATION }} + SONAR_PROJECT_KEY: ${{ env.SONAR_PROJECT_KEY }} + with: + args: > + -Dsonar.host.url=https://sonarcloud.io + -Dsonar.projectKey=${{ env.SONAR_PROJECT_KEY }} + -Dsonar.organization=${{ env.SONAR_ORGANIZATION }} + -Dsonar.sources=source + -Dsonar.language=python + -Dsonar.externalIssuesReportPaths=sonar-issues.json + + - name: Archive Results + uses: actions/upload-artifact@v3 + with: + name: code-quality-report + path: sonar-issues.json \ No newline at end of file