We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e26d08 + bbb5fd7 commit 5dfc943Copy full SHA for 5dfc943
.github/workflows/sonarcube-scan-main-branch.yaml
@@ -0,0 +1,31 @@
1
+name: Sonar static analysis (main)
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ workflow_dispatch: {}
7
8
+permissions:
9
+ contents: read
10
11
+concurrency:
12
+ group: sonar-main-${{ github.ref }}
13
+ cancel-in-progress: true
14
15
+jobs:
16
+ sonar_main:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - name: Checkout (full history)
20
+ uses: actions/checkout@v4
21
+ with:
22
+ fetch-depth: 0
23
24
+ - name: Run static analysis script
25
+ env:
26
+ BRANCH_NAME: main
27
+ SONAR_ORGANISATION_KEY: ${{ secrets.SONAR_ORGANISATION_KEY }}
28
+ SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }}
29
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30
+ FORCE_USE_DOCKER: "true"
31
+ run: ./scripts/reports/perform-static-analysis.sh
0 commit comments