From 3adaf0b4b5a49fdd36ef3004e01d537b0e406c1e Mon Sep 17 00:00:00 2001 From: Luiz Bezerra Date: Mon, 7 Oct 2024 15:58:51 +0100 Subject: [PATCH] initial sonarqube configuration Signed-off-by: Luiz Bezerra --- .github/workflows/sonarqube.yml | 19 +++++++++++++++++++ .gitignore | 4 ++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/sonarqube.yml diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml new file mode 100644 index 0000000000..c05a39ea53 --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,19 @@ +name: SonarQube Scan + +on: + push: + branches: + - sonarqube-integration + +jobs: + build: + name: scan + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.1 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - uses: sonarsource/sonarqube-scan-action@v3 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} diff --git a/.gitignore b/.gitignore index f2b7df1992..d4aab9e5f3 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,7 @@ coverage/ # Extensions *.foxe + +# SonarQube files +sonar-project.properties +.sonar_lock