Skip to content

Commit c10d44c

Browse files
authored
Don't run Sonarcloud for Dependabot (#438)
1 parent aca5639 commit c10d44c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
run: mvn --batch-mode --update-snapshots package
4545

4646
- name: SonarQube Cloud Scan
47+
# No need to run SonarCloud analysis if dependabot update or token not defined
48+
if: env.SONAR_TOKEN != '' && (github.actor != 'dependabot[bot]')
4749
run: mvn --batch-mode sonar:sonar
4850
env:
4951
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)