Skip to content
Open

Dev #18

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
24 changes: 24 additions & 0 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -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/'
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sonar.projectKey=prudwe_springboot-example
sonar.organization=prudwe
sonar.sources=.
sonar.java.binaries=target/classes