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 diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml new file mode 100644 index 0000000..db8ec2b --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,24 @@ +name: Sonar Scan + +on: + pull_request: + types: [opened, synchronize, reopened] + +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/' diff --git a/README.md b/README.md index 6636a27..272340f 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,6 @@ 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 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