From 47e1b1b80cfbfa6650b6dc6a621400bf1fe5fcef Mon Sep 17 00:00:00 2001 From: Prudhvi <123624741+prudwe@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:32:23 +0530 Subject: [PATCH 1/9] Create sonar-project.properties --- sonar-project.properties | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..3d24286 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,4 @@ +sonar.projectKey=prudwe_springboot-example +sonar.organization=prudwe +sonar.sources=. +sonar.java.binaries=target/classes From 5726a30c9c957634a857698468bc9b899ed621e7 Mon Sep 17 00:00:00 2001 From: Prudhvi <123624741+prudwe@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:33:13 +0530 Subject: [PATCH 2/9] Update dependabot.yml commented out --- .github/dependabot.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a9384b5..56943df 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,12 +3,12 @@ # Please see the documentation for all configuration options: # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates -version: 2 -updates: - - package-ecosystem: "maven" # See documentation for possible values - directory: "/" # Location of package manifests - schedule: - interval: "weekly" - time: "10:13" - timezone: "Asia/Kolkata" - open-pull-requests-limit: 10 +# version: 2 +# updates: +# - package-ecosystem: "maven" # See documentation for possible values +# directory: "/" # Location of package manifests +# schedule: +# interval: "weekly" +# time: "10:13" +# timezone: "Asia/Kolkata" +# open-pull-requests-limit: 10 From 1349019aa1eaa0adebb9cbab1784ce9d4870f936 Mon Sep 17 00:00:00 2001 From: Prudhvi <123624741+prudwe@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:33:50 +0530 Subject: [PATCH 3/9] Create sonarqube.yml --- .github/sonarqube.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/sonarqube.yml diff --git a/.github/sonarqube.yml b/.github/sonarqube.yml new file mode 100644 index 0000000..7415ea4 --- /dev/null +++ b/.github/sonarqube.yml @@ -0,0 +1,25 @@ +name: Sonar Scan + +on: + push: + branches: + - main + +jobs: + build-and-analyze: + runs-on: [ ubuntu-latest ] + steps: + - name: Checkout Source + uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + - name: Build Project + run: mvn clean install -DskipTests + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: 'https://sonarcloud.io/' From 268a23766e4f1e6776ddd425f39e2e3e9d154b09 Mon Sep 17 00:00:00 2001 From: Prudhvi <123624741+prudwe@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:34:46 +0530 Subject: [PATCH 4/9] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6636a27..a994f2c 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,4 @@ Spring Boot Example Application API Endpoint: http://localhost:8080/ +# Unwanted changes to trigger the pipeline From 0bada4cc5c5973e28e89174a1d33ccb4eadd992d Mon Sep 17 00:00:00 2001 From: Prudhvi <123624741+prudwe@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:39:39 +0530 Subject: [PATCH 5/9] Delete .github/sonarqube.yml --- .github/sonarqube.yml | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 .github/sonarqube.yml diff --git a/.github/sonarqube.yml b/.github/sonarqube.yml deleted file mode 100644 index 7415ea4..0000000 --- a/.github/sonarqube.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Sonar Scan - -on: - push: - branches: - - main - -jobs: - build-and-analyze: - runs-on: [ ubuntu-latest ] - steps: - - name: Checkout Source - uses: actions/checkout@v4 - - name: Setup Java - uses: actions/setup-java@v4 - with: - distribution: 'temurin' - java-version: '17' - - name: Build Project - run: mvn clean install -DskipTests - - name: SonarQube Scan - uses: sonarsource/sonarqube-scan-action@master - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: 'https://sonarcloud.io/' From 00053f235c4ad996af78ec9a73d9552cdc1ae870 Mon Sep 17 00:00:00 2001 From: Prudhvi <123624741+prudwe@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:39:49 +0530 Subject: [PATCH 6/9] Create sonarqube.yml --- .github/workflows/sonarqube.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/sonarqube.yml diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml new file mode 100644 index 0000000..7415ea4 --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,25 @@ +name: Sonar Scan + +on: + push: + branches: + - main + +jobs: + build-and-analyze: + runs-on: [ ubuntu-latest ] + steps: + - name: Checkout Source + uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + - name: Build Project + run: mvn clean install -DskipTests + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: 'https://sonarcloud.io/' From a21e082ffc1b1bc93d602469efd3967ca2b2489a Mon Sep 17 00:00:00 2001 From: Prudhvi <123624741+prudwe@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:40:43 +0530 Subject: [PATCH 7/9] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a994f2c..86832d2 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,4 @@ Spring Boot Example Application API Endpoint: http://localhost:8080/ # Unwanted changes to trigger the pipeline +Adding second unwanted chnages to trigger the pipeline on push event From 8de61dc186bd4551e0ebb96a662710fd01f4c10a Mon Sep 17 00:00:00 2001 From: Prudhvi <123624741+prudwe@users.noreply.github.com> Date: Tue, 3 Sep 2024 17:09:07 +0530 Subject: [PATCH 8/9] Update sonarqube.yml --- .github/workflows/sonarqube.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 7415ea4..db8ec2b 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -1,9 +1,8 @@ name: Sonar Scan on: - push: - branches: - - main + pull_request: + types: [opened, synchronize, reopened] jobs: build-and-analyze: From caa137f5dfbbbf79e862c731404d0f3c23f3be32 Mon Sep 17 00:00:00 2001 From: Prudhvi <123624741+prudwe@users.noreply.github.com> Date: Tue, 3 Sep 2024 17:11:09 +0530 Subject: [PATCH 9/9] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 86832d2..272340f 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,4 @@ Spring Boot Example Application API Endpoint: http://localhost:8080/ # Unwanted changes to trigger the pipeline Adding second unwanted chnages to trigger the pipeline on push event +Created dev branch