Skip to content

Commit

Permalink
Fixed SonarCloud YAML structure
Browse files Browse the repository at this point in the history
  • Loading branch information
MaceScott committed Feb 16, 2025
1 parent 88428e7 commit 260a629
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,18 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt || true # Modify if needed

- name: Install SonarCloud Scanner
run: |
wget -O sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.7.0.2747-linux.zip
unzip sonar-scanner.zip
mv sonar-scanner-4.7.0.2747-linux sonar-scanner
echo "$GITHUB_WORKSPACE/sonar-scanner/bin" >> $GITHUB_PATH
- name: Run SonarCloud Analysis
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
pip install sonar-scanner-cli
sonar-scanner \
-Dsonar.organization=MaceScott \
-Dsonar.projectKey=macescott \
-Dsonar.python.version=3.12 # Adjust to match your project
-Dsonar.python.version=3.12

0 comments on commit 260a629

Please sign in to comment.