From 334d010a247056f2c537c4c0e7f233d96e6306aa Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 May 2023 16:07:08 +0200 Subject: [PATCH] Create sonarcloud.yaml Signed-off-by: James Cole --- .github/workflows/sonarcloud.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/sonarcloud.yaml diff --git a/.github/workflows/sonarcloud.yaml b/.github/workflows/sonarcloud.yaml new file mode 100644 index 0000000000..a5e4219c46 --- /dev/null +++ b/.github/workflows/sonarcloud.yaml @@ -0,0 +1,21 @@ +name: Sonarcloud +on: + push: + branches: + - main + - develop + pull_request: + types: [opened, synchronize, reopened] +jobs: + 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.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}