From 05190f78f9a8a87d016021fb9497a057bb487d0c Mon Sep 17 00:00:00 2001 From: andre-lx <44682155+andre-lx@users.noreply.github.com> Date: Wed, 7 Dec 2022 14:25:52 +0000 Subject: [PATCH] chore: sonarqube (#13) --- .github/workflows/sonarqube.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/sonarqube.yaml diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml new file mode 100644 index 0000000..47bb509 --- /dev/null +++ b/.github/workflows/sonarqube.yaml @@ -0,0 +1,30 @@ +name: SonarQube + + + +on: + push: + branches: + - main + + + +jobs: + sonarqube: + name: SonarQube + runs-on: self-hosted + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: SonarQube file + run: | + echo "sonar.projectKey=${{ github.event.repository.name }}" > sonar-project.properties + + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@v1.1.0 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}