From 1b13df9ba64e8f165e832599a69e23600d378727 Mon Sep 17 00:00:00 2001 From: Miranda Fleury Date: Tue, 19 Mar 2024 11:08:24 +0100 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 91addfa..96dc278 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -51,3 +51,16 @@ jobs: - name: Push the image into the registry run: docker push ghcr.io/clawdeenfleury/tp2:latest + + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}