From b4334d18d6f7439e6725de2ad812e2683a030895 Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Thu, 29 Aug 2024 16:37:31 +0200 Subject: [PATCH] Create sonarcloud.yml --- .github/workflows/sonarcloud.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/sonarcloud.yml diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml new file mode 100644 index 0000000..487cec3 --- /dev/null +++ b/.github/workflows/sonarcloud.yml @@ -0,0 +1,21 @@ +name: "Sonarcloud Analysis" + +on: ["pull_request"] + +jobs: + sonarcloud-analysis: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + # Disabling shallow clone to improve relevancy of SonarCloud reporting + fetch-depth: 0 + + - name: SonarCloud integration + uses: sonarsource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}