Skip to content

Commit 9ee7cba

Browse files
committed
Only run sonar job when on target repo and not on fork PRs or dependabot
1 parent 3e82163 commit 9ee7cba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Build with Maven
4242
run: ./mvnw -B clean verify -DcommonConfig.jarSign.skip=true
4343
- name: Analyze with SonaQube
44-
if: ${{ github.actor != 'dependabot[bot]' }}
44+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
4545
env:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
4747
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)