File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 27
27
sonar :
28
28
name : SonarCloud Scan
29
29
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/') }}
30
+ if : ${{ !(github.event_name == 'pull_request' && startsWith(github.head_ref, 'renovate/')) && secrets.SONAR_TOKEN != '' }}
32
31
steps :
33
32
- uses : actions/checkout@v4
34
33
with :
55
54
restore-keys : ${{ runner.os }}-gradle
56
55
57
56
- 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 }}
57
+ run : |
58
+ ./gradlew build sonarqube --info \
59
+ -Dsonar.projectKey=${{ env.SONARCLOUD_ORG }}_${{ github.event.repository.name }} \
60
+ -Dsonar.organization=${{ env.SONARCLOUD_ORG }} \
61
+ -Dsonar.host.url=${{ env.SONARCLOUD_HOST }}
59
62
env :
60
63
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
61
64
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments