Skip to content

Firefly III: a personal finances manager

Create sonarcloud.yml

James Cole346289fdb2c1
diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
new file mode 100644
index 0000000000..a1a34fa24f
--- /dev/null
+++ b/.github/workflows/sonarcloud.yml
@@ -0,0 +1,19 @@
+name: Sonarcloud
+on:
+ push:
+ branches:
+ - main
+ - develop
+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.GH_ACTIONS_PERSONAL_ACCESS_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}