-
Notifications
You must be signed in to change notification settings - Fork 43
44 lines (38 loc) · 1.16 KB
/
sonar.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Sonar analysis
on:
push:
branches:
- develop
pull_request:
types: [opened, edited, reopened, synchronize]
jobs:
build:
strategy:
matrix:
java-version: [17]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK ${{matrix.java-version}}
uses: actions/setup-java@v2
with:
distribution: temurin
cache: maven
java-version: ${{matrix.java-version}}
- name: Sonar analysis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_VIANELLO }}
run: mvn -B -U install sonar:sonar
-Dsonar.projectKey=indigo-iam_iam
-Dsonar.organization=indigo-iam
-Dsonar.login=$SONAR_TOKEN
-Dsonar.pullrequest.key=${{ github.event.number }}
-Dsonar.pullrequest.branch=${{ github.HEAD_REF }}
-Dsonar.pullrequest.base=${{ github.BASE_REF }}
-Dsonar.pullrequest.github.repository=${{ github.repository }}
-Dsonar.scm.provider=git
-Dsonar.host.url=https://sonarcloud.io