From 1789949fb3c36ce4bc58f17c7b4049ab1c293888 Mon Sep 17 00:00:00 2001 From: innov <2897217417@qq.com> Date: Thu, 9 Jan 2025 17:15:45 +0800 Subject: [PATCH] Add .gitea/workflows/SonarScanner.yaml --- .gitea/workflows/SonarScanner.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/SonarScanner.yaml diff --git a/.gitea/workflows/SonarScanner.yaml b/.gitea/workflows/SonarScanner.yaml new file mode 100644 index 0000000..1cae8df --- /dev/null +++ b/.gitea/workflows/SonarScanner.yaml @@ -0,0 +1,27 @@ + + on: + # Trigger analysis when pushing to your main branches, and when creating a pull request. + push: + branches: + - main + - master + - develop + - 'releases/**' + pull_request: + types: [opened, synchronize, reopened] + + name: Main Workflow + jobs: + sonarqube: + runs-on: ubuntu-latest + steps: + - uses: https://gitlink.org.cn/KingChan/checkout@v4 + with: + # Disabling shallow clones is recommended for improving the relevancy of reporting + fetch-depth: 0 + - name: SonarQube Scan + uses: https://gitlink.org.cn/KingChan/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + \ No newline at end of file