From cadbda5283fd063649aed6f660de5132a1aab3a7 Mon Sep 17 00:00:00 2001 From: SevenOfAces Date: Thu, 6 Mar 2025 03:07:20 +0000 Subject: [PATCH] Add .forgejo/workflows/sonar.yml --- .forgejo/workflows/sonar.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .forgejo/workflows/sonar.yml diff --git a/.forgejo/workflows/sonar.yml b/.forgejo/workflows/sonar.yml new file mode 100644 index 0000000..efc1a8c --- /dev/null +++ b/.forgejo/workflows/sonar.yml @@ -0,0 +1,25 @@ +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] + workflow_dispatch: + + +name: SonarQube Scan +jobs: + sonarqube: + name: SonarQube Trigger + runs-on: ubuntu-latest + steps: + - name: Checking out + uses: actions/checkout@v4 + with: + # Disabling shallow clone is recommended for improving relevancy of reporting + fetch-depth: 0 + - name: SonarQube Scan + uses: kitabisa/sonarqube-action@v1.2.0 + with: + host: ${{ secrets.SONARQUBE_HOST }} + login: ${{ secrets.SONARQUBE_TOKEN }} \ No newline at end of file