From 495d8741ae51b10a0b8e7d6f488aa57d74bebd9c Mon Sep 17 00:00:00 2001 From: Jean Barriere Date: Fri, 3 Oct 2025 16:19:12 +0200 Subject: [PATCH] chore(ci): add sonar props --- .github/workflows/sonar.yml | 21 +++++++++++++++++++++ sonar-project.properties | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/sonar.yml create mode 100644 sonar-project.properties diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml new file mode 100644 index 00000000..27c215ea --- /dev/null +++ b/.github/workflows/sonar.yml @@ -0,0 +1,21 @@ +name: sonar + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + scan: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - uses: sonarsource/sonarqube-scan-action@v6 + with: + projectBaseDir: ${{ github.workspace }} + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000..ac201073 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,4 @@ +sonar.projectKey=com.shell.peter-evans-create-pull-request-v7 + +sonar.javascript.lcov.reportPaths=coverage/lcov.info +sonar.sources=src