Create sonarcloud.yml

This commit is contained in:
Beppe Catanese
2024-08-29 16:37:31 +02:00
committed by GitHub
parent 31ef9e4b89
commit b4334d18d6

21
.github/workflows/sonarcloud.yml vendored Normal file
View File

@@ -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 }}