Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/Code-Quality-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Run SonarCloud Analysis for Content
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
working-directory: content-api/content-service
run: |
mvn sonar:sonar \
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:5.8.0.7211:sonar \
-Dsonar.projectKey=Sunbird-Knowlg_knowledge-platform \
-Dsonar.organization=sunbird-knowlg-1 \
-Dsonar.host.url=https://sonarcloud.io \
Expand All @@ -209,18 +209,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Run SonarCloud Analysis for Taxonomy
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
working-directory: taxonomy-api/taxonomy-service
run: |
mvn sonar:sonar \
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:5.8.0.7211:sonar \
-Dsonar.projectKey=Sunbird-Knowlg_knowledge-platform \
-Dsonar.organization=sunbird-knowlg-1 \
-Dsonar.host.url=https://sonarcloud.io \
Expand All @@ -233,10 +233,10 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
fetch-depth: 0
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Run SonarCloud Analysis for Search
Expand All @@ -247,7 +247,7 @@ jobs:
run: |
mvn clean compile

mvn sonar:sonar \
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:5.8.0.7211:sonar \
-Dsonar.projectKey=Sunbird-Knowlg_knowledge-platform \
-Dsonar.organization=sunbird-knowlg-1 \
-Dsonar.host.url=https://sonarcloud.io \
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ jobs:
- name: Analyze with SonarCloud

# You can pin the exact commit or the version.
# uses: SonarSource/sonarcloud-github-action@v2.2.0
uses: SonarSource/sonarcloud-github-action@4006f663ecaf1f8093e8e4abb9227f6041f52216
# SonarSource/sonarcloud-github-action is deprecated; sonarqube-scan-action is its
# drop-in replacement and ships a scanner that supports Java 21+.
uses: SonarSource/sonarqube-scan-action@e805d875275f728fac1885b413934be6d7c63f65 # v8.4.1
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
with:
Expand All @@ -62,6 +63,7 @@ jobs:
# mandatory
-Dsonar.projectKey=Sunbird-Knowlg_knowledge-platform
-Dsonar.organization=sunbird-knowlg-1
-Dsonar.host.url=https://sonarcloud.io
# Comma-separated paths to directories containing main source files.
#-Dsonar.sources= # optional, default is project base directory
# Comma-separated paths to directories containing test source files.
Expand Down
Loading