diff --git a/.github/workflows/sonarcloud-checks.yml b/.github/workflows/sonarcloud-checks.yml
index 22689fd..f91b4ec 100644
--- a/.github/workflows/sonarcloud-checks.yml
+++ b/.github/workflows/sonarcloud-checks.yml
@@ -32,6 +32,8 @@ jobs:
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze
env:
+ USER_NAME: ${{ secrets.PPE_USER_NAME }}
+ ACCESS_TOKEN: ${{ secrets.PPE_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=PhonePe_DLM
diff --git a/pom.xml b/pom.xml
index 02f2830..7dd801c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -84,6 +84,7 @@
0.5.0
2.5.3
1.6
+ 3.9.1.2184
4.3.1
@@ -97,14 +98,21 @@
17
17
+
PhonePe_DLM
phonepe
https://sonarcloud.io
-
+ src/main
+ src/test
+ jacoco
+ reuseReports
+ java
+ true
+ ${project.basedir}/../target/site/jacoco/jacoco.xml
- **/src/test/com/phonepe/dlm/**/*.java,
- **/src/test/com/phonepe/dlm/*.java
+ **/src/test/java/com/phonepe/dlm/**/*.java,
+ **/src/test/java/com/phonepe/dlm/*.java
@@ -275,25 +283,47 @@
deploy
+
+ org.sonarsource.scanner.maven
+ sonar-maven-plugin
+ ${maven.sonar.plugin.version}
+
+
+ sonar-run
+ verify
+
+ sonar
+
+
+
+
org.jacoco
jacoco-maven-plugin
${jacoco.maven.plugin.version}
- prepare-agent
+ initialize
prepare-agent
+
+ true
+
report
- test
+ prepare-package
report
+
+
+ **/src/test/**
+
+