Skip to content

Firefly III: a personal finances manager

Create sonarcloud.yaml

James Cole334d010a2470
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 }}