From 3eab9453766e4520533f18fe60f7a24901c01fcb Mon Sep 17 00:00:00 2001 From: Rajendra Reddy Date: Mon, 6 Apr 2026 12:31:57 +0000 Subject: [PATCH] Update .gitea/workflows/sonar.yml --- .gitea/workflows/sonar.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/sonar.yml b/.gitea/workflows/sonar.yml index 1d4e922..105a424 100644 --- a/.gitea/workflows/sonar.yml +++ b/.gitea/workflows/sonar.yml @@ -1,16 +1,20 @@ -name: CI-Testsonar-4 +name: CI + on: push: branches: [main, testing] - pull_request: - branches: [main, testing] jobs: sonar: - uses: Rajendra.Reddy/wdipl-actions/.gitea/workflows/qualitytest.yml@v0.2 - with: - project_key: ${{ gitea.event.repository.name }} - secrets: - SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }} - SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} \ No newline at end of file + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Run SonarQube Scan + uses: Rajendra.Reddy/wdipl-actions/actions/sonar@main + with: + sonar_host_url: ${{ secrets.SONARQUBE_HOST }} + sonar_token: ${{ secrets.SONARQUBE_TOKEN }} + wait_for_quality_gate: true \ No newline at end of file