Skip to content

Commit

Permalink
Issue #ED-4414 fix: added sonar token
Browse files Browse the repository at this point in the history
  • Loading branch information
vpPavithra committed Jun 18, 2024
1 parent 6a21efc commit 6e6f8a4
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,20 @@ jobs:
- name: Install Sonar Scanner
run: sudo npm install -g [email protected]

- name: Run Sonar Scanner
run: sonar-scanner
- name: Cache SonarQube Scanner
uses: actions/cache@v2
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonarqube-${{ hashFiles('**/sonar-project.properties') }}
restore-keys: |
${{ runner.os }}-sonarqube-
- name: Run SonarQube Analysis
run: |
sonar-scanner \
-Dsonar.projectKey=Sunbird-Ed_SunbirdEd-mobile-app \
-Dsonar.organization=sunbird-ed \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=$SONAR_TOKEN
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 6e6f8a4

Please sign in to comment.