Skip to content

Commit 996f6eb

Browse files
committed
added sonar details
1 parent 5ae483e commit 996f6eb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/sonar.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ jobs:
3636

3737
- name: Run SonarCloud Analysis
3838
# This command runs the sonar-scanner executable from the sonarqube-scanner package.
39-
# The configuration is taken from sonar-project.js
40-
run: npm exec sonar-scanner
39+
# It passes organization and project key from secrets to ensure they are always correctly set.
40+
run: >
41+
npm exec sonar-scanner --
42+
-Dsonar.organization=rohithandique
43+
-Dsonar.projectKey=rohithandique_generic-ui-react
4144
env:
4245
# The SONAR_TOKEN is needed for authentication with SonarCloud.
4346
# It should be stored as a secret in your GitHub repository.

0 commit comments

Comments
 (0)