-
-
Notifications
You must be signed in to change notification settings - Fork 38
29 lines (26 loc) · 947 Bytes
/
sonarqube.yml
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
name: SonarQube
on:
# Trigger analysis when pushing to your main branches, and when creating a pull request.
push:
branches:
- main
- master
- develop
- 'releases/**'
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarqube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: SonarQube PR
if: github.event_name == 'pull_request'
working-directory: jhdf
run: >
./gradlew sonarqube
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.pullrequest.branch=${{ github.ref }}
-Dsonar.pullrequest.key=${{ github.ref.name }}
-Dsonar.pullrequest.base=${{ github.base.ref }}
-Dsonar.pullrequest.github.repository=${{ github.server_url }}/${{ github.repository }}