From 7a7122699481c15730003a2cb478d89d3ad9daf7 Mon Sep 17 00:00:00 2001 From: Deep Vijay Poharkar Date: Tue, 6 May 2025 12:56:47 +0530 Subject: [PATCH 1/3] added sonarqube analysis --- .github/workflows/healthCheck.yml | 12 ++++++++++++ sonar-project.properties | 0 2 files changed, 12 insertions(+) create mode 100644 sonar-project.properties diff --git a/.github/workflows/healthCheck.yml b/.github/workflows/healthCheck.yml index 43be0b6..785e291 100644 --- a/.github/workflows/healthCheck.yml +++ b/.github/workflows/healthCheck.yml @@ -6,8 +6,20 @@ on: branches: - master jobs: + sonarqube-analysis: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: SonarQube Analysis + uses: SonarSource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} build: runs-on: ubuntu-latest + needs: sonarqube-analysis env: LT_USERNAME: ${{ secrets.LT_USERNAME }} LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..e69de29 From 438fb1819018bf01867424b0fe915a1931f095c1 Mon Sep 17 00:00:00 2001 From: Deep Vijay Poharkar Date: Tue, 6 May 2025 15:28:07 +0530 Subject: [PATCH 2/3] added key --- sonar-project.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-project.properties b/sonar-project.properties index e69de29..3777efe 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=LambdaTest_lambdatest-maven-tunnel_AZalB1Y1-ZKsnB8M0r2f \ No newline at end of file From 9c7e42e2bbb34b3d7bbab60e6dc221c774a15f6e Mon Sep 17 00:00:00 2001 From: Deep Vijay Poharkar Date: Tue, 6 May 2025 18:01:59 +0530 Subject: [PATCH 3/3] removed build constraint --- .github/workflows/healthCheck.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/healthCheck.yml b/.github/workflows/healthCheck.yml index 785e291..d21f8fc 100644 --- a/.github/workflows/healthCheck.yml +++ b/.github/workflows/healthCheck.yml @@ -19,7 +19,6 @@ jobs: SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} build: runs-on: ubuntu-latest - needs: sonarqube-analysis env: LT_USERNAME: ${{ secrets.LT_USERNAME }} LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}