From 75f9973a0566e1fde64800c94eaa6d77b281e8ee Mon Sep 17 00:00:00 2001 From: Dongho Kim Date: Wed, 27 Nov 2024 01:13:01 +0900 Subject: [PATCH] added sonar analysis --- .gitea/workflow/demo.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflow/demo.yaml diff --git a/.gitea/workflow/demo.yaml b/.gitea/workflow/demo.yaml new file mode 100644 index 0000000..329e208 --- /dev/null +++ b/.gitea/workflow/demo.yaml @@ -0,0 +1,25 @@ +on: + # Trigger analysis when pushing to your main branches, and when creating a pull request. + push: + branches: + - main + - master + - develop + - 'releases/**' +run-name: ${{ gitea.actor }} is Scanning Code 🚀 +name: SonarQube Scan +jobs: + sonarqube: + name: SonarQube Scan + 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: https://sonar.ailaplacelab.com + login: sqa_a3988da69583c0ae606dae085f14e6ec901675f7