From 992780145b7beed511aefd3cc971107e0b00933e Mon Sep 17 00:00:00 2001 From: Alistair Spark Date: Fri, 3 May 2024 16:44:47 +0100 Subject: [PATCH] Add Sonarqube scanning --- .github/workflows/sonar.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/sonar.yml diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml new file mode 100644 index 0000000..1beb914 --- /dev/null +++ b/.github/workflows/sonar.yml @@ -0,0 +1,20 @@ +--- +name: Sonarqube +on: + workflow_dispatch: + push: + +jobs: + CI: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{secrets.SONAR_TOKEN}} + SONAR_HOST_URL: ${{vars.SONAR_HOST_URL}} + with: + args: -Dsonar.projectKey=${{github.event.repository.name}}