Skip to content

Commit

Permalink
adding sonar properties
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmmolina committed Sep 8, 2024
1 parent 36774b9 commit 8394b49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Upload to sonarcloud.io
uses: sonarsource/sonarqube-scan-action@v2.3.0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
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
3 changes: 3 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sonar.projectKey=postech-5soat-grupo-25_tech-challenge-lgpd
sonar.organization=postech-5soat-grupo-25
sonar.sources=source

0 comments on commit 8394b49

Please sign in to comment.