File tree Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 24
24
SONARCLOUD_HOST : https://sonarcloud.io
25
25
26
26
jobs :
27
- sonar :
28
- name : SonarCloud Scan
27
+ token-check :
29
28
runs-on : ubuntu-latest
30
- # Dependabot PRs have no access to secrets (SONAR_TOKEN) -> Ignore them
31
- if : ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'dependabot/') }}
29
+ if : ${{ !(github.event_name == 'pull_request' && startsWith(github.head_ref, 'renovate/')) }}
30
+ outputs :
31
+ hasToken : ${{ steps.check-token.outputs.has }}
32
+ steps :
33
+ - id : check-token
34
+ run : |
35
+ [ -z $SONAR_TOKEN ] && echo "has=false" || echo "has=true" >> "$GITHUB_OUTPUT"
36
+ env :
37
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
38
+
39
+ sonar-scan :
40
+ runs-on : ubuntu-latest
41
+ needs : token-check
42
+ if : ${{ needs.token-check.outputs.hasToken }}
32
43
steps :
33
44
- uses : actions/checkout@v4
34
45
with :
55
66
restore-keys : ${{ runner.os }}-gradle
56
67
57
68
- name : Build
58
- run : ./gradlew build sonarqube --info -Dsonar.projectKey=${{ env.SONARCLOUD_ORG }}_${{ github.event.repository.name }} -Dsonar.organization=${{ env.SONARCLOUD_ORG }} -Dsonar.host.url=${{ env.SONARCLOUD_HOST }}
69
+ run : |
70
+ ./gradlew build sonarqube --info \
71
+ -Dsonar.projectKey=${{ env.SONARCLOUD_ORG }}_${{ github.event.repository.name }} \
72
+ -Dsonar.organization=${{ env.SONARCLOUD_ORG }} \
73
+ -Dsonar.host.url=${{ env.SONARCLOUD_HOST }}
59
74
env :
60
75
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
61
76
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ plugins {
7
7
}
8
8
9
9
ext {
10
- checkstyleVersion = ' 10.16 .0'
10
+ checkstyleVersion = ' 10.17 .0'
11
11
}
12
12
13
13
def properties (String key ) {
@@ -44,7 +44,7 @@ dependencies {
44
44
testImplementation platform(' org.junit:junit-bom:5.10.2' ),
45
45
' org.junit.jupiter:junit-jupiter' ,
46
46
' org.junit.jupiter:junit-jupiter-engine' ,
47
- ' org.assertj:assertj-core:3.25.3 '
47
+ ' org.assertj:assertj-core:3.26.0 '
48
48
testRuntimeOnly(" org.junit.platform:junit-platform-launcher" ) {
49
49
because(" Only needed to run tests in a version of IntelliJ IDEA that bundles older versions" )
50
50
}
You can’t perform that action at this time.
0 commit comments